API

 

TranslatableOptionList

Provides properties and methods to create a translatable select list to select a single option.

class TranslatableOptionList {
  constructor( translate: TranslationService, key: string );
  selectedIndex: number;
  selectedValue: string;
  readonly selectedText: string;
  readonly selectedItem: TranslatableOption;
  next(): IteratorResult< TranslatableOption >;
  [Symbol.iterator](): IterableIterator< TranslatableOption >;
}

constructor()

Creates a new instance of the select list.

translate
The translation service.
key
The key of the text node that contains the keys and texts of the items.

selectedIndex

Gets or sets the index of the selected item.

selectedValue

Gets or sets the value of the selected item.

selectedText

Gets the translated text of the selected item.

selectedItem

Gets the selected item.

next()

Returns the next iterator result.

[Symbol.iterator]()

Returns the iterator of the list.