/** * This interface describes a single dropdown menu item. */ export class DropdownItem { /** * The unique id of the item within the dropdown. */ itemId: string; /** * The text of the dropdown menu item. */ text: string; /** * Determines if the item is enabled or disabled. */ enabled: boolean = true; constructor( itemId: string, text: string) { this.itemId = itemId; this.text = text; this.enabled = true; } setText(text: string) { this.text = text; } setEnabled(enabled: boolean) { this.enabled = enabled; } }