MenuButton
A menu button is a menu item that displays a word or phrase that the user can click to initiate an operation.
Notes
The BitMenuButton is a Multi-API component which can accept the list of Items in 3 different ways: BitMenuButtonItem class, a custom Generic class, and BitMenuButtonOption component.Usage
Basic
The MenuButton offers three style options: Primary (default), Standard, and Text.
Primary button
Primary menu buttons are attention-grabbing, featuring a filled appearance. They're designed for essential actions at the core of your application.
Standard button
Standard menu buttons offer a moderate level of emphasis, suitable for important actions that aren't central to the application. They serve as a middle ground between Text menu buttons and the more prominent Primary menu buttons, providing flexibility in emphasis.
Text button
Text menu buttons are best suited for understated actions, serving as a less prominent choice in various interface elements.
Split
Explore the Split behavior of BitMenuButton, demonstrating buttons divided into two sections. One section triggers an action on click, while the other section opens a callout to reveal additional options.
Sticky
Experience the Sticky functionality of BitMenuButton, showcasing a button that remains sticky after an item selection. The button displays the selected item and retains its state for continuous user interaction.
Icons
Present BitMenuButton instances with customized icons, enriching the visual options for representing menu buttons.
Events
Demonstrate BitMenuButton instances highlighting item click events, offering versatile interactions within the menu buttons.
Clicked item:
Customization
Explore BitMenuButton's customization capabilities.
Note that if Sticky set to true, HeaderTemplate and Text will be ignored.
Note that if Sticky set to true, HeaderTemplate and Text will be ignored.
Style & Class
Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements.
Component's Style & Class:
Item's Style & Class:
Styles & Classes:
Binding
This example demonstrates different ways to handle item selection and changes within the component.
Selected item: Item C
Changed item:
RTL
Implementation
BitMenuButton parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitMenuButtonClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitNameSelectorPair properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|