view
Overview
view
is a special XML component which is similar to the body
element in HTML. All variables and UI components are contained within the view
block. It is required within each view.xml
file, and no code (apart from the file's XML declaration) may exist outside of it.
Basic Example
Standard Attributes
title
title
Optional
Type: string
Default: unset
Advanced Attributes
mode
mode
Optional
Type: back
| close
Default: back
By default a view will show a "back" icon in the top left corner, indicating to the user how to navigate back to the previous view. This can be overwritten to show a "close" icon when setting mode="close"
on the view.
on-back
on-back
Optional
Default: unset
Triggered when: The user presses the built-in back button on a view (situated in the top-left corner of a view)
Event parameter: None
See more details:
on-navigate
on-navigate
Optional
Default: unset
Event parameter: None
See more details:
Last updated