Interface IComboBoxOptionBuilder<TBuilder>
Builds one option of a combo box.
public interface IComboBoxOptionBuilder<TBuilder>
Type Parameters
TBuilder
Methods
WithDisplayValue(string)
Sets the text shown for the option. A "{Localize key}" shows that key's text in the current language.
IComboBoxOptionBuilder<TBuilder> WithDisplayValue(string text)
Parameters
textstring
Returns
- IComboBoxOptionBuilder<TBuilder>
WithKey(string)
Sets the key that identifies the option, and that the selected key names.
IComboBoxOptionBuilder<TBuilder> WithKey(string key)
Parameters
keystring
Returns
- IComboBoxOptionBuilder<TBuilder>
WithSortIndex(int)
Sets the option's position in the list. Lower values come first.
IComboBoxOptionBuilder<TBuilder> WithSortIndex(int index)
Parameters
indexint
Returns
- IComboBoxOptionBuilder<TBuilder>