BootstrapToolbar Class
Represents the control that allows you to supply your web application with a lightweight adaptive toolbar interface.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
Declaration
[DXClientDocumentationProviderWeb("BootstrapToolbar")]
[ToolboxTabName("DX.24.2: Bootstrap Controls")]
public class BootstrapToolbar :
BootstrapMenuBase
Related API Members
The following members return BootstrapToolbar objects:
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.");
}
Inheritance
See Also