Absolute.Controls¶
The Absolute.Controls
package contains some extra controls
Import statement:
import Absolute.Controls 0.1
TabView¶
TabView combines a TabBar and StackLayout to facilitate the creation of tab based interfaces.
TabView implements the Container API, you can either add TabItem
declaratively or programmatically (using addItem
, insertItem
and so on)
TabItem¶
Item that can be added to a TabView.
Properties¶
string text
: Text used for the TabButtontext
propertyIcon icon
: icon group used for the TabButtonicon
propertyComponent view
: the view component that will be inserted in the StackLayoutbool closable
: specifies whether tab is closable. If True, a close button will be show next to the tab button’s textbool autoClose
: true to automatically close the tab when the close button is pressed. Otherwise, you need to callclose()
manually.bool closeAccepted
: specifies whether the close request was acccepted. The TabButton and it’s corresponding view will be removed immediately when this property becomesTrue
.
Signals¶
onCloseRequest
: this signal is emitted when the user clicked on the close button.
Methods¶
close()
: close this tab