views Array

A list of the view ids on which the drawer will appear. If omitted, the drawer will work on any view in the application.


<div data-role="view" id="drawer-settings">
    <a href="#bar" data-role="button">Go to bar</a>

<div data-role="view" id="bar">
    Drawer will not work here
    <a href="#drawer-settings" data-role="button">Back to settings</a>

<div data-role="drawer" id="my-drawer" data-views='["drawer-settings"]'>

In this article
Not finding the help you need? Improve this article