Defines an item that can be pressed, swiped, and dragged.
Creates a new ItemContainer.
The DOM element hosts the new ItemContainer. For the ItemContainer to be accessible, this element must have its role attribute set to "list" or "listbox". If tapBehavior is set to none and selectionDisabled is true, then use the "list" role; otherwise, use the "listbox" role.
An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events.
Gets or sets a value that specifies whether the item can be dragged.
Gets the element that hosts this ItemContainer.
Gets or sets a value that specifies whether the item is selected.
Gets or sets a value that specifies whether selection of this item is disabled.
Gets or sets how the ItemContainer reacts to the swipe gesture. The swipe gesture can select the swiped items or can have no effect on the current selection.
Gets or sets the orientation of swipe gestures.
Gets or sets how the ItemContainer reacts when the user taps or clicks an item.
Registers an event handler for the specified event.
The name of the event to handle. Note that you drop the "on" when specifying the event name. For example, instead of specifying "onclick", you specify "click".
The event handler function to associate with the event.
Set to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.
Raises an event of the specified type and with additional properties.
The type (name) of the event.
The set of additional properties to be attached to the event object when the event is raised.
boolean
true if preventDefault was called on the event, otherwise false.
Releases resources held by this ItemContainer. Call this method when the ItemContainer is no longer needed. After calling this method, the ItemContainer becomes unusable.
Forces the ItemContainer to update its layout. Call this function when the reading direction of the app changes after the control has been initialized.
Raised when the item is invoked. (You can use the tapBehavior property to specify whether taps and clicks invoke the item.)
An object that contains information about the event.
Raised after the item is selected or deselected.
An object that contains information about the event.
Raised just before the current selection changes.
An object that contains information about the event.
Removes an event handler that the addEventListener method registered.
The name of the event that the event handler is registered for.
The event handler function to remove.
Set to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.