A slider for a value inside a range, and a range slider for two (a from and a to). Both are native
<input type="range">, so the keyboard (arrows, Home, End, Page keys) and assistive technology work as the
browser does them; the look is the canvas's. The value is shown beside the track and is the LiveView's, sent
by the form's phx-change.
The range slider is two inputs on one track: the low one can never go above the high one and the other way
round, which range/3 enforces on the server too.
Summary
Functions
Where value sits between min and max, from 0 to 100.
A pair {low, high} put in order and inside min and max.
Functions
Where value sits between min and max, from 0 to 100.
A pair {low, high} put in order and inside min and max.
Attributes
id(:string) (required)name_low(:string) (required)name_high(:string) (required)low(:integer) (required)high(:integer) (required)label(:string) - what the range is for, written above the track. Defaults tonil.label_low(:string) (required) - names the low thumb for assistive technology.label_high(:string) (required) - names the high thumb for assistive technology.min(:integer) - Defaults to0.max(:integer) - Defaults to100.step(:integer) - Defaults to1.format(:any) - Defaults tonil.class(:any) - Defaults tonil.- Global attributes are accepted.
Attributes
id(:string) (required)name(:string) (required)value(:integer) (required)label(:string) (required)min(:integer) - Defaults to0.max(:integer) - Defaults to100.step(:integer) - Defaults to1.format(:any) - number to text, for the value beside the label. Defaults tonil.ticks(:list) - names under the track, first at the minimum and last at the maximum. Defaults to[].disabled(:boolean) - Defaults tofalse.class(:any) - Defaults tonil.- Global attributes are accepted.