After the upgrade to Smart GWT 3.1 we had to change all our Button instances to IButton in order to get consistent button styles across the application*.
The only place this is not easily possibly is with custom dialogs. While using the SC.xxx shortcut methods produces dialogs with stretch-img buttons I cannot create custom dialogs with IButtons. The dialog passed to
has a setButtons() method but it only accepts Buttons and not IButtons.
So, how do I create custom dialogs with stretch-img buttons?
* Reason: ButtonItem is a stretch-img button as is IButton but Button is a CSS3 button. If you have both ButtonItems and buttons outside forms those should be IButtons.
The only place this is not easily possibly is with custom dialogs. While using the SC.xxx shortcut methods produces dialogs with stretch-img buttons I cannot create custom dialogs with IButtons. The dialog passed to
Code:
SC.ask(title,message, callback, dialog);
So, how do I create custom dialogs with stretch-img buttons?
* Reason: ButtonItem is a stretch-img button as is IButton but Button is a CSS3 button. If you have both ButtonItems and buttons outside forms those should be IButtons.
Comment