https://github.com/drewtempelmeyer/ember-cli-splitter
Vertical splitter for ambitious web applications
https://github.com/drewtempelmeyer/ember-cli-splitter
Last synced: 7 months ago
JSON representation
Vertical splitter for ambitious web applications
- Host: GitHub
- URL: https://github.com/drewtempelmeyer/ember-cli-splitter
- Owner: drewtempelmeyer
- License: mit
- Created: 2016-08-25T21:23:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T21:27:22.000Z (over 9 years ago)
- Last Synced: 2025-09-23T01:57:34.267Z (11 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ember-cli-splitter
[](https://travis-ci.org/drewtempelmeyer/ember-cli-splitter)
An Ember component to split two vertical panes. Based off of [ember-cli-happy-splitter](ZebraFlesh/ember-cli-happy-splitter).
## Installation
Requires Ember >= 2.3.
```
ember install ember-cli-splitter
```
## Usage
```hbs
{{#splitter-container as |container|}}
{{#container.pane}}
Left Pane
{{/container.pane}}
{{container.bar}}
{{#container.pane}}
Right Pane
{{/container.pane}}
{{/splitter-container}}
```
You may also supply the `minWidth` and `width` to set the minimum width and width (in percentages), respectively.
```hbs
{{#splitter-container as |container|}}
{{#container.pane minWidth=5 width=30}}
Left Pane
{{/container.pane}}
{{container.bar}}
{{#container.pane minWidth=50 width=70}}
Right Pane
{{/container.pane}}
{{/splitter-container}}
```
Supply the `barWidth` property to modify the width of the splitter bar. The default value is 5.
```hbs
{{#splitter-container barWidth=20}}
{{!-- Content --}}
{{/splitter-container}}
```
## Options
#### splitter-container
* `barWidth` - width of the splitter bar. Default is 5.
#### splitter-pane
* `minWidth` - the minimum width (percentage) of the pane. Default is 10.
* `width` - the width (percentage) of the pane. If this value is lower than `minWidth`, the `minWidth` value will be applied. Default is 50.
## Running Tests
* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`