Skip to main content

Class MenuItem

Represents a text display menu item

Assembly: TextDisplayMenu.dll
View Source
Declaration
public class MenuItem

Properties

SubItems

Sub items in the menu

View Source
Declaration
[JsonPropertyName("sub")]
public MenuItem[]? SubItems { get; set; }

Text

The text on the menu item

View Source
Declaration
[JsonPropertyName("text")]
public string Text { get; set; }

Command

The optional command when the item is selected

View Source
Declaration
[JsonPropertyName("command")]
public string Command { get; set; }

Type

The menu item type

View Source
Declaration
[JsonPropertyName("type")]
public string Type { get; set; }

Id

The menu item id

View Source
Declaration
[JsonPropertyName("id")]
public string Id { get; set; }

Value

The menu item value

View Source
Declaration
[JsonPropertyName("value")]
public object? Value { get; set; }

HasSubItems

Does the item have sub items

View Source
Declaration
public bool HasSubItems { get; }

IsEditable

Is the menu item editable by the user

View Source
Declaration
public bool IsEditable { get; }