UNPKG

dijit

Version:

Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible u

27 lines (22 loc) 816 B
define([ "dojo/_base/declare", "./_WidgetsInTemplateMixin", "dojo/i18n!./nls/common", "dojo/text!./templates/actionBar.html", "./form/Button" // used by template ], function(declare, _WidgetsInTemplateMixin, strings, actionBarMarkup) { return declare("dijit._ConfirmDialogMixin", _WidgetsInTemplateMixin, { // summary: // Mixin for Dialog/TooltipDialog with OK/Cancel buttons. // HTML snippet for action bar, overrides _DialogMixin.actionBarTemplate actionBarTemplate: actionBarMarkup, // buttonOk: String // Label of OK button buttonOk: strings.buttonOk, _setButtonOkAttr: { node: "okButton", attribute: "label" }, // buttonCancel: String // Label of cancel button buttonCancel: strings.buttonCancel, _setButtonCancelAttr: { node: "cancelButton", attribute: "label" } }); });