Skip to content

Titanium.UI.iOS.BarItemType

Object describing a button bar or tabbed bar item.

A button bar or tabbed bar item can have an image or a title, but not both. Buttons with images and buttons with text can be mixed in the same bar, however.

If both image and title properties are specified for a given item, the image property takes precedence and the title property is ignored.

Properties #

accessibilityLabel#

Type: String

A succint label associated with the bar item for the device's accessibility service.

enabled#

Type: Boolean

Whether the button is enabled initially.

image#

Type: String, Titanium.Blob, Titanium.Filesystem.File

Button icon. If specified, takes precedence over title.

title#

Type: String

Button title, used if no image is specified.

width#

Type: Number

Width for this button.

Titanium SDK Documentation