Skip to content

RadioButtonBar ​

<RadioButtonBar name="k" values="1|2|3"> -- Wolfram's RadioButtonBar: a <SetterBar> whose entries are radio buttons, one of which is on. The entries, the arrows and the binding are the setter bar's.

Demos·packages/components/src/radio-button-bar-box.ts· draws RadioButtonBar

Props

PropTypeDefaultNotes
namestring""The binding this control drives: name="a" fills the wildcard _a.reflects
valuesstring""The entries, |-separated, each optionally value -> label.
valuestring""The entry (or, for a multiple selection, the |-separated entries) selected at first.

As a web component

Plain custom elements, no framework required: import @enumeratio/frontend for the side effect and write <radio-button-bar-box> in any HTML. Attributes are kebab-case and always strings; the props table above names each one's attribute where it differs from its prop.