开发者

How to create wizard/screens with disabled pages/buttons using Dojo Dijit?

I want to create a sequence of screens using a StackContainer in Dijit.

However, I want to disable consecutive pages and their corresponding buttons in the StackController until the form on the current p开发者_StackOverflow中文版age has been validated successfully.

Is this possible with the standard elements? If so, how?

In addition, it would be nice if I could customize the buttons of the StackController to show my own details instead of the title of the screen.


For disabling I think you can use

the_button.set('disabled', true); //and vice-versa

For changing the details you can try setting the labels directly (similar to disabled) or try subclassing the appropriate stuff (probably the stackcontroller) if it turs out to be feasible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜