Preferences page
Revision as of 18:01, 13 March 2020 by Durable-navy-blue-otter (talk | contribs) (Created page with "A preference page is used within a preferences block to define a page which the user interacts with your app. == Example == <pre> preferences { page(name: "mainPage", titl...")
A preference page is used within a preferences block to define a page which the user interacts with your app.
Example
preferences {
page(name: "mainPage", title: "Title", install: true, uninstall: true) {
section("") {
}
}
}
Arguments
- name - (identifier string) The name of the page, within code. - title - (html string) The display text at the top of the page. - install - (boolean) should the "install" button be available. - uninstall - (boolean) should the "uninstall" button be available.
Block Methods
- section("title") - Provides a vertical separation of controls separated by a title. - input - Renders a user input widget