RawCheckbox and RawSwitch. el-id lands as id on the native <input type=checkbox>, so checked state is read from the input itself.
RawCheckbox and RawSwitch. el-id lands as id on the native <input type=checkbox>, so checked state is read from the input itself.
(check! el-id)Turn on. No-op when already on.
Turn on. No-op when already on.
(checked? el-id)True when the box / switch is on.
True when the box / switch is on.
(enabled? el-id)(set-checked! el-id on?)Drive to the given boolean state, verifying it settled.
Drive to the given boolean state, verifying it settled.
(toggle! el-id)Click once, flipping the state, and wait until the state actually flips. Re-clicks if the first click raced a re-render and was dropped.
Click once, flipping the state, and wait until the state actually flips. Re-clicks if the first click raced a re-render and was dropped.
(uncheck! el-id)Turn off. No-op when already off.
Turn off. No-op when already off.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |