Closed almonk closed 7 years ago
With the following code I cannot set the class of the button:
{ $type: 'button', $text: 'Send message', $init: function() { this.class = "button-primary" } }
However, other attributes do work like this, for e.g.:
{ $type: 'button', $text: 'Send message', $init: function() { this.disabled = true } }
try className as per spec
className
@devsnek where is this spec?
https://developer.mozilla.org/en-US/docs/Web/API/Element/className
@devsnek this fixed it ! thanks
With the following code I cannot set the class of the button:
However, other attributes do work like this, for e.g.: