Extending Dialog Buttons Option
Has there been any thought to developing
Dialog Buttons - Primary, Secondary, Disabled?
I did not find a use for setting the priority of a button, the proposed implementation below was created to apply additional styles.
Thoughts?
Current
- buttons : {
- "publish" : function() { },
- "preview" : function() { }
- "cancel" : function() { }
- }
Proposed
- buttons : {
- "publish" : function() { //support current functionality },
- "preview" : {
- click : function() { }
- // enabled defaults to true
- },
- "cancel" : {
- click : function() { },
- enabled : false
- },
- }