mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[API] Document remaining Dialog method
This commit is contained in:
parent
dfc5021e11
commit
6ab27302f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user