# BarItemType

> Object describing a button bar or tabbed bar item.

- Source: https://titaniumsdk.com/docs/sdk/13.1.1/BarItemType
- Titanium SDK version: 13.1.1
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS

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
- Platforms: iPhone, iPad, macOS
- Since: Titanium SDK iPhone 3.0.0, iPad 3.0.0, macOS 9.2.0

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

See [Titanium.UI.View.accessibilityLabel](https://titaniumsdk.com/docs/sdk/Titanium.UI.View.md#accessibilityLabel) description.

### enabled

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Default: `true`

Whether the button is enabled initially.

### image

- Type: String | Titanium.Blob | Titanium.Filesystem.File
- Platforms: Android, iPhone, iPad, macOS

Button icon. If specified, takes precedence over `title`.

### title

- Type: String
- Platforms: Android, iPhone, iPad, macOS

Button title, used if no `image` is specified.

### width

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Width for this button.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

