StatusBarExtensions
Wisej.Web.Markup.StatusBarExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the StatusBar class.
public class StatusBarExtensions
Methods
OnPanelClick<TStatusBar>(statusBar, action)

Attaches an event handler for the PanelClick event of the specified StatusBar.
action
An action to execute when a panel in the status bar is clicked.
Returns: TStatusBar. The modified status bar with the attached PanelClick event handler.
This method allows you to execute a custom action whenever a panel in the status bar is clicked.
myStatusBar.OnPanelClick((sb, args) =>
{
AlertBox.Show("Panel clicked!");
});
Panels<TStatusBar>(statusBar, panels)

Adds the specified panels to the Panels collection of the specified StatusBar.
Returns: TStatusBar. The modified status bar with the added panels.
This method allows you to add multiple panels to the status bar in one call.
myStatusBar.Panels(panel1, panel2, panel3);
ShowPanels<TStatusBar>(statusBar, value)

Sets the ShowPanels property of the specified StatusBar.
Returns: TStatusBar. The modified status bar with the updated ShowPanels property.
This method allows you to enable or disable the display of panels in the status bar.
myStatusBar.ShowPanels(true);
SizingGrip<TStatusBar>(statusBar, value)

Sets the SizingGrip property of the specified StatusBar.
Returns: TStatusBar. The modified status bar with the updated SizingGrip property.
This method allows you to enable or disable the display of the sizing grip on the status bar.
myStatusBar.SizingGrip(true);
Last updated
Was this helpful?