Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ben-ng/ribcage-split-view

A responsive navigation controller for showing two related views
https://github.com/ben-ng/ribcage-split-view

Last synced: 21 days ago
JSON representation

A responsive navigation controller for showing two related views

Awesome Lists containing this project

README

        

# RibcageSplitView

## Usage
```js
var RibcageSplitView = require('ribcage-split-view')
, Backbone = require('Backbone')
, options = {
split: 40
, minWidth: 500
, rootView: new Backbone.View()
}
, ribcageSplitView = new RibcageSplitView(options)
```

```css
@import "ribcage-split-view";
```

## Options

* **split** - Integer from 0 to 100 defining the percentage of the screen the left pane should occupy
* **minWidth** - The minimum width of the screen that should enable the split view

## Tests
Tests are in [prova](https://github.com/azer/prova).

## Developing
Install [ribcage](https://github.com/Techwraith/ribcage)

```sh
npm i -g ribcage
ribcage preview .
```

Open [http://localhost:4000/default](http://localhost:4000/default)