framework7

Open full view…

Render left-view as panel with handlebars

habinho
Fri, 09 May 2014 09:09:39 GMT

I would like to have in panel left-view a global settings link-list. How can I solve this with preprocess? It seems that this doesn't work in index.html as the loading page. Only after click on a link, preprocess was works. Any ideas? Thx!

Vladimir Kharlampidi
Fri, 09 May 2014 13:45:17 GMT

You don't need preprocess here, it is only for Ajax loaded content. Just use it without any callbacks after you init app: --- var myApp = new Framework7(); var panelTemplate = Handlebars.compile(panelTemplateString); $$('.panel-left').html(panelTemplate({ ...some handlebars data here... }))