});
/**
- * @class FlagValue
+ * @class Flag
* @memberof LuCI.form
* @augments LuCI.form.Value
* @hideconstructor
* @classdesc
*
- * The `FlagValue` element builds upon the {@link LuCI.ui.Checkbox} widget to
+ * The `Flag` element builds upon the {@link LuCI.ui.Checkbox} widget to
* implement a simple checkbox element.
*
* @param {LuCI.form.Map|LuCI.form.JSONMap} form
* @param {string} [description]
* The description text of the option element.
*/
-const CBIFlagValue = CBIValue.extend(/** @lends LuCI.form.FlagValue.prototype */ {
+const CBIFlagValue = CBIValue.extend(/** @lends LuCI.form.Flag.prototype */ {
__name__: 'CBI.FlagValue',
__init__(...args) {
/**
* Sets the input value to use for the checkbox checked state.
*
- * @name LuCI.form.FlagValue.prototype#enabled
+ * @name LuCI.form.Flag.prototype#enabled
* @type string
* @default 1
*/
/**
* Sets the input value to use for the checkbox unchecked state.
*
- * @name LuCI.form.FlagValue.prototype#disabled
+ * @name LuCI.form.Flag.prototype#disabled
* @type string
* @default 0
*/
* value will be shown as a tooltip. If the return value of the function
* is `null` no tooltip will be set.
*
- * @name LuCI.form.FlagValue.prototype#tooltip
+ * @name LuCI.form.Flag.prototype#tooltip
* @type string|function
* @default null
*/
* If set, this icon will be shown for the default one.
* This could also be a png icon from the resources directory.
*
- * @name LuCI.form.FlagValue.prototype#tooltipicon
+ * @name LuCI.form.Flag.prototype#tooltipicon
* @type string
* @default 'ℹ️';
*/
});
/**
- * @class ButtonValue
+ * @class Button
* @memberof LuCI.form
* @augments LuCI.form.Value
* @hideconstructor
* @classdesc
*
- * The `ButtonValue` element wraps a {@link LuCI.ui.Hiddenfield} widget and
+ * The `Button` element wraps a {@link LuCI.ui.Hiddenfield} widget and
* renders the underlying UCI option or default value as readonly text.
*
* @param {LuCI.form.Map|LuCI.form.JSONMap} form
* @param {string} [description]
* The description text of the option element.
*/
-const CBIButtonValue = CBIValue.extend(/** @lends LuCI.form.ButtonValue.prototype */ {
+const CBIButtonValue = CBIValue.extend(/** @lends LuCI.form.Button.prototype */ {
__name__: 'CBI.ButtonValue',
/**
*
* The default of `null` means the option title is used as caption.
*
- * @name LuCI.form.ButtonValue.prototype#inputtitle
+ * @name LuCI.form.Button.prototype#inputtitle
* @type string|function
* @default null
*/
*
* The default of `null` means a neutral button styling is used.
*
- * @name LuCI.form.ButtonValue.prototype#inputstyle
+ * @name LuCI.form.Button.prototype#inputstyle
* @type string
* @default null
*/
* DOM click element as the first and the underlying configuration section ID
* as the second argument.
*
- * @name LuCI.form.ButtonValue.prototype#onclick
+ * @name LuCI.form.Button.prototype#onclick
* @type function
* @default null
*/