npm.io
0.0.1 • Published 9 years ago

cog-split-view

Licence
MIT
Version
0.0.1
Deps
2
Vulns
0
Weekly
0

cog-split-view

A customizable split view (vertical, horizontal or both) that utilizes jQuery UI resizable component.

Installation

  • ember install cog-split-view

Usage

A simple implementation of a vertical two-panel view:

{{#cog-split-view isVertical=true as |p|}}
  {{#if p.isForPanelOne}}
    Panel One
  {{else if p.isForPanelTwo}}
    Panel Two
  {{/if}}
{{/cog-split-view}}

Configuration

The following parameters are supported by the component:

Property Description Default
isVertical Determines the orientation of the split view panes, either vertical or horizontal. false
isResizable Determines whether or not the panes are allowed to be resized with the dragger handle true
options Options to be passed in to configure each individual pane within the split view. See component definition for all possible options. null

Running

Testing

Keywords