Interface IUIDropDownMenuItem
A component that represents a menu item, which reacts when clicking on it.
Namespace: DevToys.Api
Assembly: DevToys.Api.dll
Syntax
public interface IUIDropDownMenuItem
Properties
IconFontName
Gets the name of the font containing the icon.
Declaration
string? IconFontName { get; }
Property Value
Type | Description |
---|---|
string |
IconGlyph
Gets the glyph corresponding to the icon in the IconFontName.
Declaration
char IconGlyph { get; }
Property Value
Type | Description |
---|---|
char |
IsEnabled
Gets whether this menu item should be enabled or disabled. Default is true.
Declaration
bool IsEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
OnClickAction
Gets the action to run when the user clicks the menu item.
Declaration
Func<ValueTask>? OnClickAction { get; }
Property Value
Type | Description |
---|---|
Func<ValueTask> |
Text
Gets the text to display in the menu item.
Declaration
string? Text { get; }
Property Value
Type | Description |
---|---|
string |
Events
IconFontNameChanged
Raised when IconFontName is changed.
Declaration
event EventHandler? IconFontNameChanged
Event Type
Type | Description |
---|---|
EventHandler |
IconGlyphChanged
Raised when IconGlyph is changed.
Declaration
event EventHandler? IconGlyphChanged
Event Type
Type | Description |
---|---|
EventHandler |
IsEnabledChanged
Raised when IsEnabled is changed.
Declaration
event EventHandler? IsEnabledChanged
Event Type
Type | Description |
---|---|
EventHandler |
TextChanged
Raised when Text is changed.
Declaration
event EventHandler? TextChanged
Event Type
Type | Description |
---|---|
EventHandler |