bopaTlhopho
→ createSelect()Creates a select control.
bopaTlhopho([dintsi])Returns a native element wrapper. Use the receiver helpers to read or update it. option(label, value) adds or updates an option; selected() returns a string or, for a multiple select, an array.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
dintsi (optional) | boammaaruri | Allow multiple selection, or pass an existing select element. |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri e = bopaTlhopho();
tlaleletsaTlhopho(e, "Pududu", "blue");
tlaleletsaTlhopho(e, "Bohibidu", "red");
tlhophoYaElemente(e, "red");
}