BootstrapToolbarItemCollection.Item[Int32] Property
Provides indexed access to individual items within the BootstrapToolbarItemCollection.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
Parameters
Name | Type | Description |
---|---|---|
index | Int32 | An integer value specifying the zero-based index of the item to be accessed. |
Property Value
Type | Description |
---|---|
BootstrapToolbarItem | An BootstrapToolbarItem object representing an item located at the specified index within the collection. |
Example
This example demonstrates the basic functionality of the Toolbar control.
- Initialize a new instance of the BootstrapToolbar class.
- Add required toolbar items (BootstrapToolbarItem objects) to the BootstrapToolbar.Items collection.
Additional members:
- BootstrapToolbar.ItemClick occurs when an end-user clicks a toolbar button.
- MenuItem.Name specifies a button’s name, which identifies the item in the toolbar’s Items collection.
- MenuItem.Text specifies a button’s display text.
- MenuItem.BeginGroup – if set to true, the button becomes the first button in a new button group.
- BootstrapToolbarItemBase.IconCssClass specifies the CSS class of an icon displayed by a toolbar item.
- MenuItem.NavigateUrl specifies a button’s navigation location. When this property is specified, the button is rendered as a hyperlink.
The image below shows the result:
function onDefaultToolbarItemClick(s, e) {
dxbsDemo.showToast("The button '" + e.item.name + "' has been clicked.");
}
See Also