bopaRadio
→ createRadio()Creates a radio group.
bopaRadio([leina], [leinaLaSetlhopha])Returns a native element wrapper. Use the receiver helpers to read or update it. Radio option(value, label) reverses select’s argument order. selected() returns the checked native HTMLInputElement; bolengJwaElemente returns its string value.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
leina (optional) | `mokwalo | elemente` |
leinaLaSetlhopha (optional) | mokwalo | Group name when the first argument is an existing container. |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri e = bopaRadio();
tlaleletsaTlhopho(e, "blue", "Pududu");
tlaleletsaTlhopho(e, "red", "Bohibidu");
tlhophoYaElemente(e, "blue");
}