You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agreed, the code above currently wouldn't work, because addClassNames doesn't return the created button. So people often end up passing class names to constructors instead (to keep the call-site short). The extra code in the constructor is useless, and it doesn't really make the user APIs any cleaner.
It could be nice if addClassNames could return the element itself.
btnCreate = row.appendChild(new Button('CREATE')).addClassNames('col-lg-3');
The text was updated successfully, but these errors were encountered: