Class TwMenuTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for menus (TwMenu and its items). Override any property to customize menu styles globally.
[ExcludeFromCodeCoverage]
public class TwMenuTheme
- Inheritance
-
TwMenuTheme
- Inherited Members
Remarks
The button that opens a menu is a TwButton, or a TwIcon button when the menu is icon only, so it takes its look from those themes.
Constructors
TwMenuTheme()
public TwMenuTheme()
Properties
CheckIcon
Gets or sets the classes for the tick beside a checkbox item. It keeps its space while unticked, so the labels line up.
public required string CheckIcon { get; set; }
Property Value
CheckIconHidden
Gets or sets the classes added to the tick while a checkbox item is unticked, which hide it but keep its space
(e.g. invisible).
public required string CheckIconHidden { get; set; }
Property Value
Divider
Gets or sets the classes for the line between groups of items.
public required string Divider { get; set; }
Property Value
GroupLabel
Gets or sets the classes for the heading of a group of items.
public required string GroupLabel { get; set; }
Property Value
Item
Gets or sets the classes for a menu item, including its hover and focus states. Focus moves between items with the arrow keys, so the focused item needs a visible indicator.
public required string Item { get; set; }
Property Value
ItemDisabled
Gets or sets the classes added to a disabled menu item.
public required string ItemDisabled { get; set; }
Property Value
ItemIcon
Gets or sets the classes for the icon at the start of a menu item.
public required string ItemIcon { get; set; }
Property Value
Panel
Gets or sets the classes for the menu panel. The menu script positions it with fixed positioning, so it is not clipped by a scrolling container such as a table.
public required string Panel { get; set; }
Property Value
Root
Gets or sets the classes for the element around the button and the menu.
public required string Root { get; set; }