Tab
Extends Composite
A container representing a single tab of a TabFolder widget.
Import this type with “const {Tab} = require('tabris');
”
Properties
badge
iOS
Type: string
A badge to attach to the tab.
image
iOSAndroid
Type: Image
An image to be displayed on the tab. Will not be shown on iOS if the TabFolder
’s tabBarLocation
is set to top
selectedImage
iOSAndroid
Type: Image
An image to be displayed on the currently active tab.
title
Type: string
The title to be displayed on the tab.
Events
badgeChanged
Fired when the badge property has changed.
Event Parameters
target: this The widget the event was fired on.
value: string The new value of badge.
imageChanged
Fired when the image property has changed.
Event Parameters
selectedImageChanged
Fired when the selectedImage property has changed.
Event Parameters
target: this The widget the event was fired on.
value: Image The new value of selectedImage.
titleChanged
Fired when the title property has changed.
Event Parameters
target: this The widget the event was fired on.
value: string The new value of title.
See also
原文:
https://youjingyu.github.io/Tabris-Documention/?folderName=widgets&pageName=Tab.html