From 6ab27302f6a36c7fc2f9ed8877e1108f59f570a0 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 29 Sep 2016 16:49:42 -0700 Subject: [PATCH] [API] Document remaining Dialog method --- src/api/ui/Dialog.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api/ui/Dialog.js b/src/api/ui/Dialog.js index 8e3ea26b49..ec80ca88c1 100644 --- a/src/api/ui/Dialog.js +++ b/src/api/ui/Dialog.js @@ -64,6 +64,13 @@ define(['text!./dialog.html', 'zepto'], function (dialogTemplate, $) { this.showing = false; }; + /** + * Get or set the "enabled" state of the OK button for this dialog. + * @param {boolean} [state] true to enable, false to disable + * @returns {boolean} true if enabled, false if disabled + * @method enabled + * @memberof module:openmct.Dialog# + */ Dialog.prototype.enabled = function (state) { if (state !== undefined) { this.enabledState = state;