ember-expand-multiline
v0.0.4
Published
Make a multiline div expandable and show only a few lines
Downloads
4
Maintainers
Readme
ember-expand-multiline
Requirements
- Ember >= 1.13.0
- Ember CLI
Installing
- ember-cli >= 0.2.3
ember install ember-expand-multiline
Upgrading
It's advisable to run ember g ember-expand-multiline
between upgrades as dependencies may have been added, removed, or upgraded between releases. Please try this, along with clearing node_modules
and bower_components
before reporting issues after upgrading.
Usage
{{#expand-multiline visibleLines=2}}
YOUR TEXT HERE
{{/expand-multiline}}
###Properties
| Property | Default | Definition | | ------------- |:--------:| -----------:| | theme | default | Main class of the component | | visibleLines | 2 | Visible lines when collapsed | | showLess | true | Show/Hide Show Less button when expanded |
###Config
You can set the default values in config/environment.js
following the next structure:
var ENV={
'ember-expand-multiline': {
theme: 'default',
showLess: true,
visibleLines: 2
}
}
return ENV;
Development
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.