Method AddStickyButton
AddStickyButton(string?, string?, SvgImage?, Action?)
Adds a sticky button to the toolbar.
public virtual SimpleToolBarView.IToolBarItem AddStickyButton(string? text, string? toolTip = null, SvgImage? image = null, Action? onClick = null)
Parameters
text
stringThe text to display on the button.
toolTip
stringThe tooltip text to display when the mouse hovers over the button.
image
SvgImageThe image to display on the button.
onClick
ActionThe action to perform when the button is clicked.
Returns
- SimpleToolBarView.IToolBarItem
The created sticky button item.