plumatic / dommy

A tiny ClojureScript DOM manipulation and event library
759 stars 74 forks source link

setting "disabled" attribute of a button in a template/node #40

Closed BasicWolf closed 11 years ago

BasicWolf commented 11 years ago

Hello, Aria,

Can you please tell what is the proper way of adding the "disabled" attribute to a button via dommy.template/node. E.g. how to build

aria42 commented 11 years ago

I believe in the attribute map you would do [:#some-div {:disabled true}], in general the second argument in a compound element can be a map literal that has any properties.

BasicWolf commented 11 years ago

Thank you very much!