Skip to main content

Class MenuItem

Represents a text display menu item

Assembly: TextDisplayMenu.dll
View Source
public class MenuItem

Properties

SubItems

Sub items in the menu

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

Text

The text on the menu item

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

Command

The optional command when the item is selected

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

Type

The menu item type

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

Id

The menu item id

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

Value

The menu item value

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

HasSubItems

Does the item have sub items

View Source
public bool HasSubItems { get; }

IsEditable

Is the menu item editable by the user

View Source
public bool IsEditable { get; }