Readonly
iosReadonly
androidGets/sets title of header bar item. If image is not set, title will be shown in the header bar.
Title won't show if item is set as left item to header bar.
0.1
Readonly
sizeGets/sets size of header bar item. Size must be obtained life cycle of page. Otherwise returning value will be undefined.
4.0.1
Gets/sets Image Object or Image Path of header bar item. Image is set to null as default.
If image is already set on HeaderBarItem, title should not be set for some native behaviours.
0.1
Gets/sets customView of header bar item. Default is undefined. In Android, customView cannot be assigned as UI.HeaderBar#setLeftItem left item. Given customView overrides following HeaderBarItem properties; image, title, font, systemIcon and systemItem.
4.1.5
Gets/sets enabled status of header bar item. Enabled is set to true as default.
0.1
Gets/sets callback for press event. If enabled property is set to false press callback won't be called.
0.1
Gets/sets color of the item's text/image.
0.1
Readonly
badgeGets badge of header bar item. Badge that is displayed in the upper-right corner of the item with a surrounding red oval. Badge should not be given in constructor. In Android, badge does not appear when assigned to UI.HeaderBar#setLeftItem left item of HeaderBar.
var headerBarItem = new HeaderBarItem();
headerBarItem.title = "Item";
headerBarItem.badge.text = "5";
headerBarItem.badge.visible = true;
page.headerBar.setItems([headerBarItem]);
3.0.0
A content description briefly describes the view. VoiceOver will read this string when a user selects the associated element.
UI.HeaderBarItem
4.4.1
Generated using TypeDoc
Since
0.1
HeaderBarItem is a button object that can be shown in header bar of a page. Items set to header bar will be shown on the right side of header bar. You can enable/disable items and listen press event.
Example