# ember-cli-splitter

> Vertical splitter for Ember.js applications

Latest version **0.0.3** (published 2016-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-splitter
pnpm add ember-cli-splitter
yarn add ember-cli-splitter
bun add ember-cli-splitter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-11-21 |
| First published | 2016-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | tempelmeyer |
| Keywords | ember-addon, ember-cli, splitter, split, view |

## Links

- npm: https://www.npmjs.com/package/ember-cli-splitter
- Repository: https://github.com/drewtempelmeyer/ember-cli-splitter
- Homepage: https://github.com/drewtempelmeyer/ember-cli-splitter#readme
- Issues: https://github.com/drewtempelmeyer/ember-cli-splitter/issues
- npm.io page: https://npm.io/package/ember-cli-splitter

## Dependencies (2)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.6
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^1.0.3

## Recent versions

- 0.0.3 (latest) — 2016-11-21
- 0.0.2 — 2016-10-20
- 0.0.1 — 2016-08-26

## README

# ember-cli-splitter

[![Build Status](https://travis-ci.org/drewtempelmeyer/ember-cli-splitter.svg?branch=master)](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`

---
_Source: https://npm.io/package/ember-cli-splitter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
