ToolStrip
Description
This component represents a horizontal or vertical toolbar in Blazor using the Gap.Blazor.ToolStrip
model. It uses the Telerik ToolBar
component to render a collection of interactive items such as buttons, labels, and separators. The component supports tooltips, autosizing, and dynamic item rendering.
Usage
Properties
toolStrip: Instance of the
Gap.Blazor.ToolStrip
model.Items: A collection of
ToolStripItem
objects, including:ToolStripLabel
ToolStripButton
ToolStripSeparator
ShowItemToolTips: Boolean indicating whether tooltips should be displayed.
ToolTip: Tooltip model used when
ShowItemToolTips
is enabled.
Methods
GetAutoSizeClass(): Returns
"AutoSize"
if the toolbar should automatically adjust its height.
Dynamic Rendering
TelerikToolBar: Renders the toolbar container.
WMToolStripLabel / Button / Separator: Rendered dynamically based on the item type.
WMToolTipComponent: Conditionally rendered if tooltips are enabled.
Styles
Events
No direct events in this component, but individual items (e.g., buttons) may trigger their own events.
Last updated