Open colinmollenhour opened 13 years ago
Doesn't it already do that? https://github.com/madrobby/scripty2/blob/master/src/ui/controls/dialog.js#L169
No: https://github.com/madrobby/scripty2/blob/master/src/ui/controls/dialog.js#L192 I'm essentially talking about changing that line to: new UI.Button(element,button.options || {});
Simple solution: if a button "options" property exists then pass it to the UI.Button constructor. Resulting example for API would be something like: