http://framework7.io/docs/panel.html#routable-panels
I read it ,but helpless.
I don’t understand,how to create panel via router component.
I did some test but failed.
More puzzled things:
1.how to insert page to left panel via componenturl,just like app.views.create(’.view-main’,{url: ‘home.htm’})
Thanks many.
It’s better
but still not a solution for dynamic content panel
Seem panel was a container for view,but…
When to create view instance for view.view-left?It seems to go back to my first question
Although i can do the rest with Dom7, that’s a terrible way to do
More confused
Root & view & router & page & panel… more puzzles
It is very difficult for me to figure out structure of the F7.
I think a clear diagram will be better help us to understand the hierarchical relationship between components.
Component lifecycle diagrams should help us to leverage the capabilities of F7 better
Btw when component panel opened,
no view created by div.view-init,
router component panel was loaded : template was ready,but data never be rendered
so,i can not find any way for dynamic data rendered panel
Would you please show me more codes clearly?
Appreciate your help.
the same for me, quite confusing how to well structure a project. a simple reference example in vanilla javascript with ajax login/register/logout and some ajax calls would be great!
The key question is:
how do you bring a view into a panel and initialize it to get its instance?
I’ve always thought that using router to load and compile the template and then inject context for rendering is the best solution.
But what always bothers me is how do I load the panel properly and initialize the view inside of it.
You use panel as component. Then it (as any other component) has mounted life cycle hook. And you need to init View when panel component added to dom -> in its mounted hook