ember-frost-modal-input
A modal component that contains bunsen form content. Renders a custom header, a bunsen form and custom actions in the footer.
Installation
ember install ember-frost-modal-input
API
Attribute | Type | Value | Description |
---|---|---|---|
title |
string |
Optional custom title | |
subtitle |
string |
Optional custom subtitle | |
titleComponent |
string |
Optional title component to replace standard title/subtitle styles | |
modalName |
string |
Required name for the modal | |
onClose |
Function |
<action-name> |
Optional callback for when modal is closed |
onOpen |
Function |
<action-name> |
Optional callback for when modal is opened |
Examples
Component template using ember-block-slots
Below is an example of template.hbs
Default title component template
Custom title component template
Background effects
ember-remodal provides you with a remodal-bg class that you can apply to your application content, to apply blur effects to the modal overlay.
ember-perfectscroll effects
This gives you styling of header/footer when content is scrolled underneath either element
Styling includes: box shadow plus slight transparency in header/footer to reveal content underneath For more documentation on ember-perfectscroll: perfect-scrollbar
Development
Setup
git clone git@github.com:ciena-frost/ember-frost-modal-input.git
cd ember-frost-modal-input
npm install && bower install
Development Server
A dummy application for development is available under ember-frost-modal-input/tests/dummy
.
To run the server run ember server
(or npm start
) from the root of the repository and
visit the app at http://localhost:4200.
Testing
Run npm test
from the root of the project to run linting checks as well as execute the test suite
and output code coverage.