
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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/
The 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.js
export default class MyModal extends Component {
@tracked person;
@tracked loadingError;
@action
loaded(person) {
this.person = person;
}
@action
failedToLoad(error) {
this.loadingError = error.message;
}
}
{{! my-modal.hbs }}
<ModalDialog
@onClose={{@onClose}}
@onLoad={{@onFetchPerson}}
@onLoaded={{this.loaded}}
@onLoadError={{this.failedToLoad}} as |modal|
>
<modal.Header>
Welcome
</modal.Header>
<modal.Content>
{{#if modal.isLoading}}
Loading person…
{{else if this.loadingError}}
Unable to load person because {{this.loadingError}}
{{else}}
Hello {{this.person.name}}
{{/if}}
</modal.Content>
<modal.Footer>
<button {{on "click" modal.close}}>
Close
</button>
</modal.Footer>
</ModalDialog>
// application/route.js
export default class ApplicationRoute extends Route {
@action
loadPerson() {
// Fetch remote data
}
}
{{! application/route.hbs }}
{{#if this.showMyModal}}
<MyModal
@onClose={{this.hideMyModal}}
@onFetchPerson={{fn this.loadPerson 123}}
/>
{{/if}}
2.2.2
FAQs
A simple modal dialog component for Ember apps
The npm package @zestia/ember-modal-dialog receives a total of 4 weekly downloads. As such, @zestia/ember-modal-dialog popularity was classified as not 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.