如何禁用 dijit ConfirmDialog 按钮
How to disable dijit ConfirmDialog button
如何禁用 dijit/ConfirmDialog 上的“确定”按钮?
var lasloLoginFormDialog = new ConfirmDialog({
title: "Login",
closable: false,
});
confirmDialog 有一个 okButton 属性,表示 OK 按钮。
您可以将其设置为禁用。
lasloLoginFormDialog.show();
lasloLoginFormDialog.okButton.set('disabled',true); // add this line after show
如何禁用 dijit/ConfirmDialog 上的“确定”按钮?
var lasloLoginFormDialog = new ConfirmDialog({
title: "Login",
closable: false,
});
confirmDialog 有一个 okButton 属性,表示 OK 按钮。
您可以将其设置为禁用。
lasloLoginFormDialog.show();
lasloLoginFormDialog.okButton.set('disabled',true); // add this line after show