JSideris / DOThtml

A human-friendly way to build highly-dynamic web pages in pure JavaScript.
2 stars 4 forks source link

Property value binding for styles. #117

Open JSideris opened 3 years ago

JSideris commented 3 years ago

Already works for content and attributes. Styles are automatically updated for class bindings. Style builder can also manually be updated via the built-in $updateStyles function (or something).

That's great, but bindings should be possible.

JSideris commented 8 months ago

There are some alternative ideas about this. One is to just have a binding on the class. But this doesn't give us fine-grain control.

Another option is to just have this working with inline styling.

The transition to stylesheets does not make this easy. Still some thought needs to go into it.