Skip to main content
A newer version of this page is available. .

BootstrapToolbarItemCollection.Item[Int32] Property

Provides indexed access to individual items within the BootstrapToolbarItemCollection.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v18.2.dll

Declaration

public BootstrapToolbarItem this[int index] { get; set; }

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.

  1. Initialize a new instance of the BootstrapToolbar class.
  2. Add required toolbar items (BootstrapToolbarItem objects) to the BootstrapToolbar.Items collection.
  3. Additional members:

The image below shows the result:

BootstrapToolbar_Default

function onDefaultToolbarItemClick(s, e) {
    dxbsDemo.showToast("The button '" + e.item.name + "' has been clicked.");
}
See Also