RAILWAY SETTINGS
Lamps on
interface QSwitchProps extends HTMLAttributes<HTMLDivElement>
?: MaterialSymbol | Snippet = undefined
?: boolean = false?: boolean = false?: string = undefined?: "left" | "right" = "right"?: boolean = false?: MaterialSymbol | Snippet = undefined
?: boolean = $bindable(undefined)
value to a boolean for a setting that applies immediately. The default labelPosition="right" puts the label after the switch; use "left" to put it before. Toggle label placement below to compare.Platform one · Signal: stop · Platform lamps on
icons adds the default check and close symbols. showOnlyCheckedIcon shows a check only when the switch is on.
checkedIcon and uncheckedIcon. This lever uses two small SVG snippets. A component reference
exposes toggle(); both the switch and the desk button below update the same
value.The departure setting controls the signal above.
click sees the previous value; input and change see the new value. The method emits input and change.
Name switches with a visible label, aria-labelledby referencing
nearby text, or aria-label. Keep labels stable; aria-checked exposes
the on/off state.
Tab and Shift+Tab move focus; Space or Enter toggles. disabled prevents user interaction
and removes the tab stop.
For clickable rows, put role="switch", an accessible name and aria-checked on the row. Make its QSwitch inert and aria-hidden="true" to keep one keyboard target.