Nifty Purring Manticore

    ember-split-view-modifier

    0.0.3 • Public • Published

    ember-split-view-modifier Ember Observer Score npm version travis status

    Ember element modifier {{split-view}} that turns all child elements into resizeable split views. It uses Split.js under the hood. DEMO

    Installation

    ember install ember-split-view-modifier
    

    Usage

     
    <div {{split-view sizes=(array 25 25 50)}} class="your-container-class">
      <div></div>
      <div></div>
      <div></div>
    </div>
     

    Configuration

    The modifier accepts the following options:

    Options Type Default Description
    sizes Array Initial sizes of each element in percents or CSS values.
    minSize Number or Array 100 Minimum size of each element.
    expandToMin Boolean false Grow initial sizes to minSize
    gutterSize Number 10 Gutter size in pixels.
    gutterAlign String 'center' Gutter alignment between elements.
    snapOffset Number 30 Snap to minimum size offset in pixels.
    dragInterval Number 1 Number of pixels to drag.
    direction String 'horizontal' Direction to split: horizontal or vertical.
    cursor String 'col-resize' Cursor to display while dragging.
    gutter Function Called to create each gutter element
    elementStyle Function Called to set the style of each element.
    gutterStyle Function Called to set the style of the gutter.
    onDrag Function Callback on drag.
    onDragStart Function Callback on drag start.
    onDragEnd Function Callback on drag end.

    Refer to Split.js documentation for more details.

    License

    This project is licensed under the MIT License.

    Install

    npm i ember-split-view-modifier

    DownloadsWeekly Downloads

    10

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    9.95 kB

    Total Files

    8

    Last publish

    Collaborators

    • bekzod