tlaleletsaTlhopho
Adds or updates a control option.
tlaleletsaTlhopho(elemente, leinaKgotsaBoleng, [bolengKgotsaLeina])Select takes (label, value), defaulting value to label; passing false as value removes that label. Radio takes (value, label), defaulting label to value, and returns the native input. These methods are attached to control instances in the bundled runtime, not the Element prototype.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
elemente | elemente | The element wrapper receiver. |
leinaKgotsaBoleng | mokwalo | Select label or radio value. |
bolengKgotsaLeina (optional) | `mokwalo | maaka` |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri e = bopaTlhopho();
tlaleletsaTlhopho(e, "Pududu", "blue");
}