Giter VIP home page Giter VIP logo

ember-split-view-modifier's Introduction

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.

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above

License

This project is licensed under the MIT License.

ember-split-view-modifier's People

Contributors

bekzod avatar dependabot[bot] avatar ember-tomster avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.