ember install ember-frost-object-browser
Attribute | Type | Value | Description |
---|---|---|---|
controls | array |
Controls that will be available in the action bar | |
isLoading | boolean |
false | default - Action bar is not in a loading state |
true | Action bar is in a loading state | ||
loadingText | string |
Text that appears beside the loading animation | |
selectedItems | array |
List of items that are currently selected |
Your controller can implement the following callbacks:
onExpansionChange () {…}
onFilteringChange (filterState) {...} //Optional, used with filters
onPaginationChange (page) {…}
onSelectionChange (selectedItems) {…}
onSortingChange (sortOrder) {…}
A scenario where the loading state in the action bar might be useful is if there is some amount of processing that needs to be done in order to determine the state of the controls within the action bar. For example, determining whether a button should be enabled/disabled or shown/hidden. Note that the loading animation is the ring type from ember-frost-core.
Check out http://ciena-frost.github.io/ember-frost-object-browser/ for the demo app bundled with this addon to see an example of using this addon.
git clone git@github.com:ciena-frost/ember-frost-object-browser.git
cd ember-frost-object-browser
npm install && bower install
A dummy application for development is available under ember-frost-object-browser/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.
Run npm test
from the root of the project to run linting checks as well as execute the test suite
and output code coverage.