JSideris / DOThtml

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

Major refactor: Switch to JSON-based style builders. #179

Closed JSideris closed 5 months ago

JSideris commented 7 months ago

This makes a lot more sense than the chainable style builder, and is actually syntactically more light-weight.

Setting an inline style will work like this:

dot.div({
    id: "my-div",
    style: {
        backgroundColor: "blue"
    }
})

We will still have a dot.css function. It will work like this:

dot.css("#my-div", {
    backgroundColor: "blue"
})
JSideris commented 5 months ago

I THINK this is done now. Reopen if not.