Skip to content

<notatio-setter-bar>

<notatio-setter-bar name="k" values="1|2|3|5"> -- a row of buttons of which one is down, Wolfram's SetterBar. Click one to set it; arrows move the selection along the bar. Entries are |-separated and may be value -> label; a value that looks like mathematics is typeset. Inside a scope the binding _k is the entry's value (a number, a named value) or its index for a bare word.

<notatio-radio-button-bar> is the same control drawn with radio buttons.

Stories in the playground·packages/notatio-lit/src/notatio-setter-bar.ts· in Vue: <SetterBar>

Attributes

AttributeTypeDefaultNotes
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.