Table of Contents






Selection

A selection is mostly used as dropdown fields to select one or multiple options.

Description

Returns a empty Selection object.

Returns
data type description
Selection A Selection object
Description

Returns a Selection object, where the defaul languages (en, de, it, fr) are set with the translations.

Returns
data type description
Selection A Selection object
Description

Returns the Language object for the defined option, when found

Parameters
parameter data type description
0 String The option ident
Returns
data type description
Option<Language> Returns the language if found
Description

Inserts a new option to the selection with the given ident and Language.

Parameters
parameter data type description
0 String The option ident
1 Language The language text
Returns
data type description
Result<()> Returns error when input was wrong
Description

Returns the idents of the selected options

Returns
data type description
Vec<String> Returns a list with the selected idents
Description

Returns the first selected ident

Returns
data type description
String Returns the first selected ident
Description

Sets the selected options of the given selection

Parameters
parameter data type description
0 Vec<String> The selected option idents in a list
Description

Sets the selected options of the given selection

Parameters
data type description
String Returns the selected options of the given selection
Returns
data type description
Result<()> Returns error when input was wrong