Open dtex opened 10 years ago
Random question: will we be including styling for these elements? i.e. I think it's fairly obvious that the toggle should look like a switch - will Nodebot(s)UI include the styling for said switch? Or will styling be left as an exercise for the user?
(Given the Bootstrap-y ness of this project, I'd think the answer is 'yes', but I just wanted to make sure :-))
Short answer, "yes".
My personal hope is it can work three ways:
Looking at @davatron5000 's comment I think another "Themeroller-like" utility that is specifically for NodebotUI is something he is interested in having which of course would be very cool.
I think you've outlined a pretty good roadmap actually.
I think getting our own visual framework in there is helpful so that we can be a one stop shop forgetting robots built quickly and learners don't have to futz around with HTML n' crap.
Full steam ahead!
Oh wow, I feel dumb now. I never considered generating HTML for the user. That's a great idea of course. I was thinking of a CSS theme generator which is not nearly as helpful. I'll update the overview tonight to reflect this, but instead of versions what do you think of treating these as components that add on to core? The components could be categorized as:
Description: Can be used to turn on/off misc devices, or switch between two values. Visual representation (switch, slider, checkbox, etc) can be set with a CSS class defined in a theme. Can be updated by johnny-five to reflect physical device status.
Sample:
Required Attributes:
Optional Attributes:
Default Output|Input range: 0|1
Sample Uses: