Titanium.UI.DashboardItem

Object of Titanium.UI.
Platform Since
iPhone 1.2
iPad 1.2

Summary

An item that represents a visual icon in the Titanium.UI.DashboardView. The Dashboard Item is created by the method Titanium.UI.createDashboardItem.

Methods

Name Summary
addEventListener

Adds the specified callback as an event listener for the named event.

fireEvent

Fires a synthesized event to any registered listeners.

getBadge

Gets the value of the badge property.

getCanDelete

Gets the value of the canDelete property.

getImage

Gets the value of the image property.

getSelectedImage

Gets the value of the selectedImage property.

removeEventListener

Removes the specified callback as an event listener for the named event.

setBadge

Sets the value of the badge property.

setCanDelete

Sets the value of the canDelete property.

setImage

Sets the value of the image property.

setSelectedImage

Sets the value of the selectedImage property.

Properties

Name Type Summary
badge Number

the badge value or 0 to remove the badge

canDelete Boolean

a boolean to indicate if this item can be deleted when it edit mode

image String

the URL to the image

selectedImage String

the URL to the image to display when the item is depressed (clicked)

Events

Name Summary
click

fired when a Titanium.UI.DashboardItem is clicked

delete

fired when a Titanium.UI.DashboardItem is deleted during editings

move

fired when a Titanium.UI.DashboardItem is moved during editing