robotpy / pynetworktables2js

Forwards NetworkTables traffic to a web page, allowing you to write custom dashboards for your robot using HTML/Javascript
MIT License
46 stars 18 forks source link

Add bootstrap-like javascript helpers #2

Open virtuald opened 9 years ago

virtuald commented 9 years ago

Ideally, should be able to assign a class and a data attribute indicating the NetworkTables key, and the HTML object will transmit/respond based on NetworkTables events. For example, something like a toggle button:

<button data-nt="/SmartDashboard/foo" data-type="toggle" />

.. or something like this. A lot of the UI elements should be buildable without requiring any explicit javascript, to make it simpler to add/extend the UI.

virtuald commented 8 years ago

Another useful control would be a slider, such as @amorygalili has for the websim.

virtuald commented 8 years ago

The TableViewer app (see #10) could utilize these automatically.