Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@zestia/ember-modal-dialog
Advanced tools
This addon provides a simple Modal Dialog component.
ember install @zestia/ember-modal-dialog
https://zestia.github.io/ember-modal-dialog
await
ing in your test suite will just work.dialog
yet, because:
::backdrop
::backdrop
with CSS variablesThe modal dialog component isn't designed to be used on its own, but rather used to compose a new modal dialog component... in this example it's called "my-modal"
{{! my-modal.hbs }}
<ModalDialog @onClose={{@onClose}} as |modal|>
Content
<button {{on 'click' modal.close}}>
Close
</button>
</ModalDialog>
{{! application/template.hbs }}
{{#if this.showMyModal}}
<MyModal @onClose={{this.hideMyModal}} />
{{/if}}
ModalDialog
@onReady
Optional. This action receives the API as a parameter, for full control over a modal dialog.
@onLoad
Optional. Fired when a modal is constructed and allows you to return a promise for any data that is required before the modal can display.
@onLoaded
Optional. Fired after the request to load data was successful. Receives the result as a parameter.
@onLoadError
Optional. Fired when the request to load data fails. Receives the error as a parameter.
@onClose
Required. This action fires when close
has been called, and any animations have run to hide the modal dialog.
@onEscape
Optional. Fired when escape is pressed. Receives the API as an parameter. You can use the API to call close
for example.
close
Call this when you want to close the modal. It will first wait for any animations on the DOM element, and then @onClose
will be fired. Allowing you to physically remove the modal from the DOM.
isLoading
Whether the data required for the modal dialog to display is loading.
element
The DOM element of the modal dialog component.
boxElement
The inner DOM element of the modal dialog component, that contains the content.
4.4.1
FAQs
A simple modal dialog component for Ember apps
The npm package @zestia/ember-modal-dialog receives a total of 1,901 weekly downloads. As such, @zestia/ember-modal-dialog popularity was classified as popular.
We found that @zestia/ember-modal-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.