Quantcast

ConfirmDialog button labels

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ConfirmDialog button labels

Denis Rykov
Hi, why when I pass buttonOk and buttonCancel to ConfirmDialog constructor - it doesn't work?

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ConfirmDialog button labels

frode1
That's odd. It does work when using set() after constructing the dialog instead, i.e.:

    var cd = new dijit.ConfirmDialog({
        // ....
    }).placeAt(dojo.body());
    cd.set({
        buttonOk: "Label of OK button",
        buttonCancel: "Label of Cancel button"
    });

It's a workaround, at least..

--
Frode

On on., april 19, 2017 at 12:23:10 +0700, Denis Rykov wrote:
> Hi, why when I pass buttonOk and buttonCancel to ConfirmDialog constructor - it
> doesn't work?
> Example: https://jsfiddle.net/_DR_/zx188j4n/

> --
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
>
> [hidden email]
> To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...