Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you manage the ui-layout of an Ember.js app?

Tags:

ember.js

I am looking for options to manage the ui-layout of an ember application I am currently working on.

The application has to be very flexible (configurable) when it comes to the ui-layout - so having layout-containers with regions like "top", "left", "center", "right" and "bottom" which can be nested whould be a good fit (thats how most layout-managers manage layout).

I found a few solutions, but am somehow undecided:

  1. yui2-layout-manager (Demo) Seems a bit old/clunky, successor, yui3-layoutmanager, is in "planning" stage since months (years?)

  2. jquery-ui-layout (Demo) Looks a bit bloated. Codebase is not public: As it seems the project-owner does not want it to be too public(?) (from what i read in the google-group, someone asked why its not on github...)

  3. dojotoolkit (Demo) Seems quit a bit "obtrusive"

All in all no solution feels "good" to me and I wonder if I should better write the layout-managing-logic myself. What do you think?

like image 400
fpauser Avatar asked Mar 15 '12 10:03

fpauser


2 Answers

Check those two addons:

https://github.com/ghempton/ember-layout

https://github.com/ghempton/ember-routemanager

Also check the demo http://ghempton.github.com/ember-layout-example/

Edit: I think this project: https://github.com/flamejs/flame.js is extremely close to what you want.

like image 101
Yiannis Gkoufas Avatar answered Sep 21 '22 09:09

Yiannis Gkoufas


JQuery ui-layout is a problem with Ember, because ui-layout requires a ui-layout-center element at layout time, but Ember {{outlet}}'s typically defer the presence of these.

like image 28
Skipster Avatar answered Sep 19 '22 09:09

Skipster