A preference page is used within a preferences block to define a page which the user interacts with your app.
preferences {
page(name: "mainPage", title: "Title", install: true, uninstall: true) {
section("") {
}
}
}
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.section("title")
- Provides a vertical separation of controls separated by the provided title.input
- Renders a user input widget (of specified name, type, etc.)