Do I have to create a new panel for every page?

后端 未结 11 1482
Happy的楠姐
Happy的楠姐 2020-12-13 22:30

I would like to use a Panel in a jqm site for my Choose Language component. So that component will need to be present on every page. Here is the setup for a single-page pane

11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 23:15

    For panel, and header and footer, I create a template (I use dustjs) for each element. In the pagebeforecreate event, I append the html into the current page. You have to use pagebeforecreate event if you want JQM to 'enhance' the html. If you don't care about this, you can use the `pagecreate' event.

提交回复
热议问题