Skip to content

des75/ember-collapsible-layout

Repository files navigation

Build Status Coverage Status npm

Ember collapsible layout

See demo here

Installation

npm install ember-collapsible-layout --save-dev

Usage

In your template:

{{#collapsible-layout as |layout|}}

  {{#collapsible-panel
  layout=layout
  config=centerPanel
  }}
    Center panel content here
  {{/collapsible-panel}}

  {{#collapsible-panel
  layout=layout
  config=leftPanel
  }}
    Left panel content here
  {{/collapsible-panel}}

{{/collapsible-layout}}

In the controller:

export default Ember.Controller.extend({
  leftPanel: {
    region: "left", // required field
    width: 300,     
    resizeable: true
  },  

  centerPanel: {  // center panel is only required panel
    region: "center"
  }
});

About

collapsible panels for emberjs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published