v0.1.5 - add switch-control component
Pre-release
Pre-release
- NEW:
switch-control
element
is deigned specifically for single-button
toggle switches.- Supports both
data-on
anddata-off
attributes - Pass functions to the
onPress()
andonUnPress()
methods
for additional behaviors
- Supports both
- NEW:
switch-control.css
provides
styling for anybutton[is-switch]
,
along with custom properties for styling. - NEW:
GroundControl
provides
a getter forinputId
(previously only a setter). - BREAKING: The
usedValue
getter
defined byGroundControl
does not enforce an empty-string fallback.
Instead, attributes/properties are removed
whenusedValue
is undefined. - BREAKING:
GroundControl
provides
staticblockDisplay()
method,
rather than applyingdisplay:block
by default.
Bothtoggle-control
andinput-control
apply this as a default setting,
butswitch-control
does not.