[API] Document remaining Dialog method

This commit is contained in:
Victor Woeltjen 2016-09-29 16:49:42 -07:00
parent dfc5021e11
commit 6ab27302f6

View File

@ -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;