plotly / dash-daq

Control components for Dash
MIT License
141 stars 40 forks source link

On and Off labels for toggle switches #23

Closed alexcjohnson closed 5 years ago

alexcjohnson commented 5 years ago

The two indicators/directions on a ToggleSwitch would be more useful if they were labeled. It's not even really clear which is True and which is False, but there are lots of cases where the switch doesn't even have a clear true/on vs false/off, just two different values - for example, a voltmeter with a "single-ended" vs "differential" switch.

Certainly users can add their own labels to do this job, but it would be more convenient if this was just built in as a couple of extra props, onLabel and offLabel perhaps.

alexcjohnson commented 5 years ago

Oh sorry... this is already there, just doesn't show up in https://dash.plot.ly/dash-daq/toggleswitch