lundi 19 décembre 2016

Ember 2.10.x help for use Page Layout (Splitter) and ideas to begin and structure an EmberJs Application

enter image description here

1. Question:

I want to use an Splitter with the plugin The Ultimate Page Layout Manager http://ift.tt/1DlUYn4.

The only way i know is to create a component and use didInsertElement to initialize the plugin. Is there another way to initialize the plugin without creating a component?

2. Question

Short Explanation: I'm unsure how to structure my application with components and templates, has someone any tips based on the wireframe example?

Note: Im a new Ember Fan and want to create my first application, therefore please dont be sally if i dont know all the Ember Way Stuff.

Long Explanation: My Problem: Im not really sure how to structure my EmberJs Application with the new DND recommendations. Components are the new main structure concept and im not really sure i understand the concept exactly.

For illustration purpose, i made a simple Wireframe.

Now My Questions based on the structure of the Wireframe:

Should i use components for each ui-part, or templates?

Image the following scenario:

There is and selectbox in the navbar, this selecbox holds objects with an width proberty, who can be changed by the user. If the width is changed the right Panel with the Splitter will update to the new size (for example 500px).

I understand components should be safe ans self isolated, to be able to use the components in different scenarios or projects.

But i have the logical requirement to send a specific action from the component to the application action handler to change the

<< Wireframe >>




Aucun commentaire:

Enregistrer un commentaire