A selection is a dropdown list where you can select a single
Methods
Creates a new Selection with the default languages prefilled.
Try to get a Language option from the Selection itself.
Please note, that options can be stored either in the Selection option or this Selection object itself. This call can only return a slection Language option from this Selection option itself.
Example:
let sel = new;
assert_eq!;
sel.insert;
assert_eq!;
Inserts a new Option into the Selection. We recommond to only add dynamic options over this function. Options which should be always available should be added over the Selection Option.
Example:
let sel = new;
sel.insert;
assert_eq!;
Removes a Option from the Selection
Example:
let sel = new;
sel.insert;
assert_eq!;
sel.remove;
assert_eq!;
Returns all selected options from thie Selection.
Sets the selected options for this Selection.
Returns only one selected option. If multiple options are selected this function returns one of them randomly.
Sets a single selected option for this Selection.
Returns all keys for the different options of the selection
Example:
let sel = new;
sel.insert;
assert_eq!;