From 1a5c84c7f78c8f273d1a398055e910ea6f06ca77 Mon Sep 17 00:00:00 2001 From: systemcrash Date: Wed, 25 Jun 2025 14:52:58 +0000 Subject: [PATCH] deploy: df28a18166c330ef95cabd996297263c6f3a8713 --- jsapi/LuCI.baseclass.html | 154 +- jsapi/LuCI.dom.html | 154 +- jsapi/LuCI.form.AbstractElement.html | 154 +- jsapi/LuCI.form.AbstractSection.html | 154 +- jsapi/LuCI.form.AbstractValue.html | 154 +- jsapi/LuCI.form.ButtonValue.html | 156 +- jsapi/LuCI.form.DummyValue.html | 160 +- jsapi/LuCI.form.DynamicList.html | 154 +- jsapi/LuCI.form.FileUpload.html | 156 +- jsapi/LuCI.form.FlagValue.html | 162 +- jsapi/LuCI.form.GridSection.html | 154 +- jsapi/LuCI.form.HiddenValue.html | 156 +- jsapi/LuCI.form.JSONMap.html | 154 +- jsapi/LuCI.form.ListValue.html | 154 +- jsapi/LuCI.form.Map.html | 154 +- jsapi/LuCI.form.MultiValue.html | 156 +- jsapi/LuCI.form.NamedSection.html | 154 +- jsapi/LuCI.form.RangeSliderValue.html | 8073 +++++++++++++++++++++++++ jsapi/LuCI.form.RichListValue.html | 154 +- jsapi/LuCI.form.SectionValue.html | 170 +- jsapi/LuCI.form.TableSection.html | 154 +- jsapi/LuCI.form.TextValue.html | 156 +- jsapi/LuCI.form.TypedSection.html | 154 +- jsapi/LuCI.form.Value.html | 154 +- jsapi/LuCI.form.html | 159 +- jsapi/LuCI.fs.html | 154 +- jsapi/LuCI.headers.html | 154 +- jsapi/LuCI.html | 154 +- jsapi/LuCI.network.Device.html | 154 +- jsapi/LuCI.network.Hosts.html | 154 +- jsapi/LuCI.network.Protocol.html | 154 +- jsapi/LuCI.network.WifiDevice.html | 154 +- jsapi/LuCI.network.WifiNetwork.html | 154 +- jsapi/LuCI.network.WifiVlan.html | 154 +- jsapi/LuCI.network.html | 154 +- jsapi/LuCI.poll.html | 154 +- jsapi/LuCI.request.html | 154 +- jsapi/LuCI.request.poll.html | 154 +- jsapi/LuCI.response.html | 154 +- jsapi/LuCI.rpc.html | 154 +- jsapi/LuCI.session.html | 154 +- jsapi/LuCI.uci.html | 154 +- jsapi/LuCI.ui.AbstractElement.html | 154 +- jsapi/LuCI.ui.Checkbox.html | 154 +- jsapi/LuCI.ui.ComboButton.html | 154 +- jsapi/LuCI.ui.Combobox.html | 154 +- jsapi/LuCI.ui.Dropdown.html | 154 +- jsapi/LuCI.ui.DynamicList.html | 154 +- jsapi/LuCI.ui.FileUpload.html | 162 +- jsapi/LuCI.ui.Hiddenfield.html | 162 +- jsapi/LuCI.ui.Select.html | 154 +- jsapi/LuCI.ui.Slider.html | 5384 +++++++++++++++++ jsapi/LuCI.ui.Textarea.html | 154 +- jsapi/LuCI.ui.Textfield.html | 154 +- jsapi/LuCI.ui.changes.html | 166 +- jsapi/LuCI.ui.html | 185 +- jsapi/LuCI.ui.menu.html | 162 +- jsapi/LuCI.ui.tabs.html | 160 +- jsapi/LuCI.view.html | 154 +- jsapi/LuCI.xhr.html | 154 +- jsapi/form.js.html | 304 +- jsapi/fs.js.html | 154 +- jsapi/global.html | 4123 +++++++++++++ jsapi/index.html | 154 +- jsapi/luci.js.html | 154 +- jsapi/network.js.html | 154 +- jsapi/rpc.js.html | 154 +- jsapi/uci.js.html | 154 +- jsapi/ui.js.html | 272 +- 69 files changed, 28008 insertions(+), 122 deletions(-) create mode 100644 jsapi/LuCI.form.RangeSliderValue.html create mode 100644 jsapi/LuCI.ui.Slider.html create mode 100644 jsapi/global.html diff --git a/jsapi/LuCI.baseclass.html b/jsapi/LuCI.baseclass.html index b1c5faba29..74861c1a56 100644 --- a/jsapi/LuCI.baseclass.html +++ b/jsapi/LuCI.baseclass.html @@ -1456,6 +1456,112 @@ +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4886,7 +5038,7 @@ and the values extracted from the args array beginning with
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.dom.html b/jsapi/LuCI.dom.html index d4fbbc29b8..391af2d337 100644 --- a/jsapi/LuCI.dom.html +++ b/jsapi/LuCI.dom.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6482,7 +6634,7 @@ ignored, else not.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.AbstractElement.html b/jsapi/LuCI.form.AbstractElement.html index 7bf25d1d5a..b6d271a516 100644 --- a/jsapi/LuCI.form.AbstractElement.html +++ b/jsapi/LuCI.form.AbstractElement.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4473,7 +4625,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.AbstractSection.html b/jsapi/LuCI.form.AbstractSection.html index 40e6ea3a74..3358eabaec 100644 --- a/jsapi/LuCI.form.AbstractSection.html +++ b/jsapi/LuCI.form.AbstractSection.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6372,7 +6524,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.AbstractValue.html b/jsapi/LuCI.form.AbstractValue.html index 5ed24046ce..bcf836f3ff 100644 --- a/jsapi/LuCI.form.AbstractValue.html +++ b/jsapi/LuCI.form.AbstractValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7430,7 +7582,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.ButtonValue.html b/jsapi/LuCI.form.ButtonValue.html index eadff01b04..f291f6c1f3 100644 --- a/jsapi/LuCI.form.ButtonValue.html +++ b/jsapi/LuCI.form.ButtonValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3709,7 +3861,7 @@ renders the underlying UCI option or default value as readonly text.

    @@ -7753,7 +7905,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.DummyValue.html b/jsapi/LuCI.form.DummyValue.html index 637197b29f..eed4621a5d 100644 --- a/jsapi/LuCI.form.DummyValue.html +++ b/jsapi/LuCI.form.DummyValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3709,7 +3861,7 @@ renders the underlying UCI option or default value as readonly text.

    @@ -6784,7 +6936,7 @@ validation constraints. @@ -7581,7 +7733,7 @@ or a plain text string. If omitted, the key value is used as captio @@ -7740,7 +7892,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.DynamicList.html b/jsapi/LuCI.form.DynamicList.html index 5e5150ffd5..249dd0a718 100644 --- a/jsapi/LuCI.form.DynamicList.html +++ b/jsapi/LuCI.form.DynamicList.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7640,7 +7792,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.FileUpload.html b/jsapi/LuCI.form.FileUpload.html index 03e3c45f29..ae257d8907 100644 --- a/jsapi/LuCI.form.FileUpload.html +++ b/jsapi/LuCI.form.FileUpload.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3709,7 +3861,7 @@ offers the ability to browse, upload and select remote files.

    @@ -7897,7 +8049,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.FlagValue.html b/jsapi/LuCI.form.FlagValue.html index 0a2debec14..0e42c0a27b 100644 --- a/jsapi/LuCI.form.FlagValue.html +++ b/jsapi/LuCI.form.FlagValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3709,7 +3861,7 @@ implement a simple checkbox element.

    @@ -5697,7 +5849,7 @@ argument, this parameter is ignored.

    @@ -6679,7 +6831,7 @@ so it may return promises if overridden by user code. @@ -7104,7 +7256,7 @@ entities decoded. @@ -7781,7 +7933,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.GridSection.html b/jsapi/LuCI.form.GridSection.html index 670acede4a..0262b0d85a 100644 --- a/jsapi/LuCI.form.GridSection.html +++ b/jsapi/LuCI.form.GridSection.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7182,7 +7334,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.HiddenValue.html b/jsapi/LuCI.form.HiddenValue.html index 0074ecce1f..976f7c9e68 100644 --- a/jsapi/LuCI.form.HiddenValue.html +++ b/jsapi/LuCI.form.HiddenValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3714,7 +3866,7 @@ distorted form layout when rendering the option element.

    @@ -7594,7 +7746,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.JSONMap.html b/jsapi/LuCI.form.JSONMap.html index 4905949ef6..f01889f04a 100644 --- a/jsapi/LuCI.form.JSONMap.html +++ b/jsapi/LuCI.form.JSONMap.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6052,7 +6204,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.ListValue.html b/jsapi/LuCI.form.ListValue.html index 5589d02a94..1daa411921 100644 --- a/jsapi/LuCI.form.ListValue.html +++ b/jsapi/LuCI.form.ListValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7765,7 +7917,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.Map.html b/jsapi/LuCI.form.Map.html index fc0184f897..d28aef651b 100644 --- a/jsapi/LuCI.form.Map.html +++ b/jsapi/LuCI.form.Map.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6031,7 +6183,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.MultiValue.html b/jsapi/LuCI.form.MultiValue.html index af75642cc2..317e2e058c 100644 --- a/jsapi/LuCI.form.MultiValue.html +++ b/jsapi/LuCI.form.MultiValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3710,7 +3862,7 @@ select dropdown element.

    @@ -7788,7 +7940,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.NamedSection.html b/jsapi/LuCI.form.NamedSection.html index 59ed5691c4..3b8bb5c8c9 100644 --- a/jsapi/LuCI.form.NamedSection.html +++ b/jsapi/LuCI.form.NamedSection.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6636,7 +6788,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.RangeSliderValue.html b/jsapi/LuCI.form.RangeSliderValue.html new file mode 100644 index 0000000000..7f090e777d --- /dev/null +++ b/jsapi/LuCI.form.RangeSliderValue.html @@ -0,0 +1,8073 @@ + + + + + Class: RangeSliderValue + + + + + + + + + + + + + + + + + +
    + + +
    +

    Class: RangeSliderValue

    + + + + +
    + +
    +

    + LuCI.form. + + RangeSliderValue +

    + +

    The RangeSliderValue class implements a range slider input using +LuCI.ui.RangeSlider. It is useful in cases where a value shall fall +within a predetermined range. This helps omit various error checks for such +values. The currently chosen value is displayed to the side of the slider.

    + +
    + +
    +
    + + + + +
    +
    +

    + + new LuCI.form.RangeSliderValue(form, section, option, title, description) +

    + + + + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    form + + +LuCI.form.Map +| + +LuCI.form.JSONMap + + + + + + + + + + +

    The configuration form this section is added to. It is automatically passed +by option() or +taboption() when adding the +option to the section.

    section + + +LuCI.form.AbstractSection + + + + + + + + + + +

    The configuration section this option is added to. It is automatically passed +by option() or +taboption() when adding the +option to the section.

    option + + +string + + + + + + + + + + +

    The name of the UCI option to map.

    title + + +string + + + + + + + optional + + + + + +

    The title caption of the option element.

    description + + +string + + + + + + + optional + + + + + +

    The description text of the option element.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + +
    + + +

    Extends

    + + + + + + + + + + + + + +

    Members

    + +
    + +
    +
    +

    calculatefunction

    +
    + + +
    +
    + +
    +

    Override the calculate action.

    +

    When this property is set to a function, it is invoked when the slider +is adjusted. This might be useful to calculate and display a result which +is more meaningful than the currently chosen value. The calculated value +is displayed below the slider.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    calcunitsstring

    +
    + + +
    +
    + +
    +

    Define the units of the calculated value.

    +

    Suffix a unit string to the calculated value, e.g. 'seconds' or 'dBm'.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    defaultstring

    +
    + + +
    +
    + +
    +

    Set the default value for the slider. The default value is elided during +save: meaning, a currently chosen value which matches the default is +not saved.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    maxnumber

    +
    + + +
    +
    + +
    +

    Maximum value the slider can represent.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • 100
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    minnumber

    +
    + + +
    +
    + +
    +

    Minimum value the slider can represent.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • 0
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    stepstring

    +
    + + +
    +
    + +
    +

    Step size for each tick of the slider, or the special value "any" when +handling arbitrary precision floating point numbers.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • 1
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    usecalcboolean

    +
    + + +
    +
    + +
    +

    Whether to use the calculated result of the chosen value instead of the +chosen value: the result of the calculation returned by the +calculate function on the chosen value +is written to the configuration instead of the chosen value. The +calcunits displayed units are not included.

    +

    Note: Implementers of the calculate function shall be +mindful that it may be possible to return a NaN value which is seldom a +sensible input for the underlying daemon or system. Verification of any +calculated value is an exercise left to the implementer.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • false
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    datatypestring

    +
    + + +
    +
    + +
    +

    Specifies a datatype constraint expression to validate input values +against. Refer to LuCI.validation for details on the format.

    +

    If the user entered input does not match the datatype validation, the +option element is marked as invalid.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    default*

    +
    + + +
    +
    + +
    +

    Sets a default value to use when the underlying UCI option is not set.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    editableboolean

    +
    + + +
    +
    + +
    +

    Mark grid section option element as editable.

    +

    Options which are displayed in the table portion of a GridSection +instance are rendered as readonly text by default. By setting the +editable property of a child option element to true, that element +is rendered as a full input widget within its cell instead of a text only +preview.

    +

    This property has no effect on options that are not children of grid +section elements.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • false
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    modalonlyboolean

    +
    + + +
    +
    + +
    +

    Move grid section option element into the table, the modal popup or both.

    +

    If this property is null (the default), the option element is +displayed in both the table preview area and the per-section instance +modal popup of a grid section. When it is set to false the option +is only shown in the table but not the modal popup. When set to true, +the option is only visible in the modal popup but not the table.

    +

    This property has no effect on options that are not children of grid +section elements.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    onchangefunction

    +
    + + +
    +
    + +
    +

    Register a custom value change handler.

    +

    If this property is set to a function, it is invoked +whenever the value of the underlying UI input element changes.

    +

    The invoked handler function will receive the DOM click element as +first and the underlying configuration section ID as well as the input +value as second and third argument respectively.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    optionalboolean

    +
    + + +
    +
    + +
    +

    If set to true, the underlying ui input widget is allowed to be empty, +otherwise the option element is marked invalid when no value is entered +or selected by the user.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • false
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    passwordboolean

    +
    + + +
    +
    + +
    +

    If set to true, the field is rendered as a password input, otherwise +as a plain text input.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • false
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    placeholderstring

    +
    + + +
    +
    + +
    +

    Set a placeholder string to use when the input field is empty.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    readonlyboolean

    +
    + + +
    +
    + +
    +

    Make option element readonly.

    +

    This property defaults to the readonly state of the parent form element. +When set to true, the underlying widget is rendered in disabled state, +meaning its contents cannot be changed and the widget cannot be +interacted with.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • false
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    retainboolean

    +
    + + +
    +
    + +
    +

    If set to true, the underlying ui input widget value is not cleared +from the configuration on unsatisfied dependencies. The default behavior +is to remove the values of all options whose dependencies are not +fulfilled.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • false
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    rmemptyboolean

    +
    + + +
    +
    + +
    +

    If set to false, the underlying option value is retained upon saving +the form when the option element is disabled due to unsatisfied +dependency constraints.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • true
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    uciconfigstring

    +
    + + +
    +
    + +
    +

    Override the UCI configuration name to read the option value from.

    +

    By default, the configuration name is inherited from the parent Map. +By setting this property, a deviating configuration may be specified.

    +

    The default of null means inherit from the parent form.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    ucioptionstring

    +
    + + +
    +
    + +
    +

    Override the UCI option name to read the value from.

    +

    By default, the elements name, which is passed as third argument to +the constructor, is used as UCI option name. By setting this property, +a deviating UCI option may be specified.

    +

    The default of null means use the option element name.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    ucisectionstring

    +
    + + +
    +
    + +
    +

    Override the UCI section name to read the option value from.

    +

    By default, the section ID is inherited from the parent section element. +By setting this property, a deviating section may be specified.

    +

    The default of null means inherit from the parent section.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    validatefunction

    +
    + + +
    +
    + +
    +

    Specifies a custom validation function to test the user input for +validity. The validation function must return true to accept the +value. Any other return value type is converted to a string and +displayed to the user as validation error message.

    +

    If the user entered input does not pass the validation function, the +option element is marked as invalid.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + + + +
    +
    +

    widthnumber string

    +
    + + +
    +
    + +
    +

    Override the cell width of a table or grid section child option.

    +

    If the property is set to a numeric value, it is treated as pixel width +which is set on the containing cell element of the option, essentially +forcing a certain column width. When the property is set to a string +value, it is applied as-is to the CSS width property.

    +

    This property has no effect on options that are not children of grid or +table section elements.

    +
    + + + +
    + + + + + + + + + + + + + + + +
    Default Value:
    +
    • null
    + + + + + + + +
    + + + +
    + +
    + + + +

    Methods

    + +
    + +
    +
    +

    + + inherited + + append(obj) +

    + + + + +
    + + +
    +
    + + +
    +

    Add another form element as children to this element.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    obj + + +AbstractElement + + + + + +

    The form element to add.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + cbid(section_id){string} +

    + + + + +
    + + +
    +
    + + +
    +

    Obtain the internal ID ("cbid") of the element instance.

    +

    Since each form section element may map multiple underlying +configuration sections, the configuration section ID is required to +form a fully qualified ID pointing to the specific element instance +within the given specific section.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + +
    Throws:
    + + + +
    +
    +
    +

    Throws a TypeError exception when no section_id was specified.

    +
    +
    +
    +
    +
    + Type +
    +
    + +TypeError + + +
    +
    +
    +
    + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + string + + + Returns the element ID.
    + + + + +
    + + + +
    +
    +

    + + inherited + + cfgvalue(section_id){*} +

    + + + + +
    + + +
    +
    + + +
    +

    Query the underlying configuration value.

    +

    The default implementation of this method returns the cached return +value of load(). It may be +overridden by user code to obtain the configuration value in a +different way.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + +
    Throws:
    + + + +
    +
    +
    +

    Throws a TypeError exception when no section_id was specified.

    +
    +
    +
    +
    +
    + Type +
    +
    + +TypeError + + +
    +
    +
    +
    + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + * + + + Returns the configuration value.
    + + + + +
    + + + +
    +
    +

    + + inherited + + depends(field, value) +

    + + + + +
    + + +
    +
    + + +
    +

    Add a dependency constraint to the option.

    +

    Dependency constraints allow making the presence of option elements +dependent on the current values of certain other options within the +same form. An option element with unsatisfied dependencies will be +hidden from the view and its current value omitted when saving.

    +

    Multiple constraints (that is, multiple calls to depends()) are +treated as alternatives, forming a logical "or" expression.

    +

    By passing an object of name => value pairs as first argument, it is +possible to depend on multiple options simultaneously, forming +a logical "and" expression.

    +

    Option names may be given in "dot notation" which allows to reference +option elements outside the current form section. If a name without +dot is specified, it refers to an option within the same configuration +section. If specified as configname.sectionid.optionname, +options anywhere within the same form may be specified.

    +

    The object notation also allows for a number of special keys which are +not treated as option names but as modifiers to influence the dependency +constraint evaluation. The associated value of these special "tag" keys +is ignored. The recognized tags are:

    +
      +
    • + !reverse
      + Invert the dependency, instead of requiring another option to be + equal to the dependency value, that option should not be + equal. +
    • +
    • + !contains
      + Instead of requiring an exact match, the dependency is considered + satisfied when the dependency value is contained within the option + value. +
    • +
    • + !default
      + The dependency is always satisfied +
    • +
    +

    Examples:

    +
      +
    • + opt.depends("foo", "test")
      + Require the value of `foo` to be `test`. +
    • +
    • + opt.depends({ foo: "test" })
      + Equivalent to the previous example. +
    • +
    • + opt.depends({ foo: /test/ })
      + Require the value of `foo` to match the regular expression `/test/`. +
    • +
    • + opt.depends({ foo: "test", bar: "qrx" })
      + Require the value of `foo` to be `test` and the value of `bar` to be + `qrx`. +
    • +
    • + opt.depends({ foo: "test" })
      + opt.depends({ bar: "qrx" })

      + Require either foo to be set to test, + or the bar option to be qrx. +
    • +
    • + opt.depends("test.section1.foo", "bar")
      + Require the "foo" form option within the "section1" section to be + set to "bar". +
    • +
    • + opt.depends({ foo: "test", "!contains": true })
      + Require the "foo" option value to contain the substring "test". +
    • +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    field + + +string +| + +Object.<string, (string|RegExp)> + + + + + +

    The name of the option to depend on or an object describing multiple +dependencies which must be satisfied (a logical "and" expression).

    value + + +string +| + +RegExp + + + + + +

    When invoked with a plain option name as first argument, this parameter +specifies the expected value. In case an object is passed as first +argument, this parameter is ignored.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + formvalue(section_id){*} +

    + + + + +
    + + +
    +
    + + +
    +

    Query the current form input value.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + * + + + Returns the current input value.
    + + + + +
    + + + +
    +
    +

    + + inherited + + getUIElement(section_id){LuCI.ui.AbstractElement|null} +

    + + + + +
    + + +
    +
    + + +
    +

    Obtain the underlying LuCI.ui element instance.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + +
    Throws:
    + + + +
    +
    +
    +

    Throws a TypeError exception when no section_id was specified.

    +
    +
    +
    +
    +
    + Type +
    +
    + +TypeError + + +
    +
    +
    +
    + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + LuCI.ui.AbstractElement + | + + null + + + Returns the LuCI.ui element instance or null in case the form +option implementation does not use LuCI.ui widgets.
    + + + + +
    + + + +
    +
    +

    + + inherited + + getValidationError(section_id){string} +

    + + + + +
    + + +
    +
    + + +
    +

    Returns the current validation error for this input.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + string + + + The validation error at this time
    + + + + +
    + + + +
    +
    +

    + + inherited + + isActive(section_id){boolean} +

    + + + + +
    + + +
    +
    + + +
    +

    Test whether the option element is currently active.

    +

    An element is active when it is not hidden due to unsatisfied dependency +constraints.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + boolean + + + Returns true if the option element currently is active, otherwise it +returns false.
    + + + + +
    + + + +
    +
    +

    + + inherited + + isValid(section_id){boolean} +

    + + + + +
    + + +
    +
    + + +
    +

    Test whether the input value is currently valid.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + boolean + + + Returns true if the input value currently is valid, otherwise it +returns false.
    + + + + +
    + + + +
    +
    +

    + + inherited + + load(section_id){*|Promise.<*>} +

    + + + + +
    + + +
    +
    + + +
    +

    Load the underlying configuration value.

    +

    The default implementation of this method reads and returns the +underlying UCI option value (or the related JavaScript property for +JSONMap instances). It may be overridden by user code to load data +from non-standard sources.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + +
    Throws:
    + + + +
    +
    +
    +

    Throws a TypeError exception when no section_id was specified.

    +
    +
    +
    +
    +
    + Type +
    +
    + +TypeError + + +
    +
    +
    +
    + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + * + | + + Promise.<*> + + + Returns the configuration value to initialize the option element with. +The return value of this function is filtered through Promise.resolve() +so it may return promises if overridden by user code.
    + + + + +
    + + + +
    +
    +

    + + inherited + + parse(section_id){Promise.<void>} +

    + + + + +
    + + +
    +
    + + +
    +

    Parse the option element input.

    +

    The function is invoked when the parse() method has been invoked on +the parent form and triggers input value reading and validation.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + Promise.<void> + + + Returns a promise resolving once the input value has been read and +validated or rejecting in case the input value does not meet the +validation constraints.
    + + + + +
    + + + +
    +
    +

    + + inherited + + remove(section_id) +

    + + + + +
    + + +
    +
    + + +
    +

    Remove the corresponding value from the configuration.

    +

    This function is invoked upon saving the parent form when the option +element has been hidden due to unsatisfied dependencies or when the +user cleared the input value and the option is marked optional.

    +

    The default implementation simply removes the associated option from the +UCI configuration (or the associated JavaScript object property in +case of JSONMap forms). It may be overridden by user code to +implement alternative removal logic, e.g. to retain the original value.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + stripTags(s){string} +

    + + + + +
    + + +
    +
    + + +
    +

    Strip any HTML tags from the given input string, and decode +HTML entities.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    s + + +string + + + + + +

    The input string to clean.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + string + + + The cleaned input string with HTML tags removed, and HTML +entities decoded.
    + + + + +
    + + + +
    +
    +

    + + inherited + + textvalue(section_id){string} +

    + + + + +
    + + +
    +
    + + +
    +

    Obtain a textual input representation.

    +

    The default implementation of this method returns the HTML-escaped +current input value of the underlying +LuCI.ui widget. User code or specific +option element implementations may override this function to apply a +different logic, e.g. to return Yes or No depending on the checked +state of checkbox elements.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + +
    Throws:
    + + + +
    +
    +
    +

    Throws a TypeError exception when no section_id was specified.

    +
    +
    +
    +
    +
    + Type +
    +
    + +TypeError + + +
    +
    +
    +
    + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + string + + + Returns the text representation of the current input value.
    + + + + +
    + + + +
    +
    +

    + + inherited + + titleFn(property, fmt_args){string|null} +

    + + + + +
    + + +
    +
    + + +
    +

    Format the given named property as title string.

    +

    This function looks up the given named property and formats its value +suitable for use as element caption or description string. It also +strips any HTML tags from the result.

    +

    If the property value is a string, it is passed to String.format() +along with any additional parameters passed to titleFn().

    +

    If the property value is a function, it is invoked with any additional +titleFn() parameters as arguments and the obtained return value is +converted to a string.

    +

    In all other cases, null is returned.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    property + + +string + + + + + + + + + + +

    The name of the element property to use.

    fmt_args + + +* + + + + + + + + + + repeatable + + +

    Extra values to format the title string with.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + string + | + + null + + + The formatted title string or null if the property did not exist or +was neither a string nor a function.
    + + + + +
    + + + +
    +
    +

    + + inherited + + value(key, val) +

    + + + + +
    + + +
    +
    + + +
    +

    Add a predefined choice to the form option. By adding one or more +choices, the plain text input field is turned into a combobox widget +which prompts the user to select a predefined choice, or to enter a +custom value.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    key + + +string + + + + + +

    The choice value to add.

    val + + +Node +| + +string + + + + + +

    The caption for the choice value. May be a DOM node, a document fragment +or a plain text string. If omitted, the key value is used as caption.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + write(section_id, formvalue) +

    + + + + +
    + + +
    +
    + + +
    +

    Write the current input value into the configuration.

    +

    This function is invoked upon saving the parent form when the option +element is valid and when its input value has been changed compared to +the initial value returned by +cfgvalue().

    +

    The default implementation simply sets the given input value in the +UCI configuration (or the associated JavaScript object property in +case of JSONMap forms). It may be overridden by user code to +implement alternative save logic, e.g. to transform the input value +before it is written.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    section_id + + +string + + + + + +

    The configuration section ID

    formvalue + + +string +| + +Array.<string> + + + + + +

    The input value to write.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + +
    + + + + + + + +
    + +
    + + + + + + + +
    + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time) +
    +
    +
    + + + + \ No newline at end of file diff --git a/jsapi/LuCI.form.RichListValue.html b/jsapi/LuCI.form.RichListValue.html index 193b217045..0e7cb20527 100644 --- a/jsapi/LuCI.form.RichListValue.html +++ b/jsapi/LuCI.form.RichListValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7917,7 +8069,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.SectionValue.html b/jsapi/LuCI.form.SectionValue.html index 626303d760..d8b4487110 100644 --- a/jsapi/LuCI.form.SectionValue.html +++ b/jsapi/LuCI.form.SectionValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3709,7 +3861,7 @@ element container, allowing to nest form sections into other sections.

    @@ -5153,7 +5305,7 @@ within the given specific section.

    @@ -5549,7 +5701,7 @@ argument, this parameter is ignored.

    @@ -6347,7 +6499,7 @@ returns false. @@ -6530,7 +6682,7 @@ so it may return promises if overridden by user code. @@ -6681,7 +6833,7 @@ validation constraints. @@ -7324,7 +7476,7 @@ was neither a string nor a function. @@ -7470,7 +7622,7 @@ or a plain text string. If omitted, the key value is used as captio @@ -7621,7 +7773,7 @@ its write() implementation is a no-op.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.TableSection.html b/jsapi/LuCI.form.TableSection.html index 6144d69b50..293566674f 100644 --- a/jsapi/LuCI.form.TableSection.html +++ b/jsapi/LuCI.form.TableSection.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7154,7 +7306,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.TextValue.html b/jsapi/LuCI.form.TextValue.html index 81ac23da4f..28d0b68dd7 100644 --- a/jsapi/LuCI.form.TextValue.html +++ b/jsapi/LuCI.form.TextValue.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3709,7 +3861,7 @@ @@ -7637,7 +7789,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.TypedSection.html b/jsapi/LuCI.form.TypedSection.html index 0844670673..0860a33217 100644 --- a/jsapi/LuCI.form.TypedSection.html +++ b/jsapi/LuCI.form.TypedSection.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6843,7 +6995,7 @@ was neither a string nor a function.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.Value.html b/jsapi/LuCI.form.Value.html index c5e3c05692..d0762e708f 100644 --- a/jsapi/LuCI.form.Value.html +++ b/jsapi/LuCI.form.Value.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7696,7 +7848,7 @@ before it is written.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.form.html b/jsapi/LuCI.form.html index 95f8186c00..b9dbed8bec 100644 --- a/jsapi/LuCI.form.html +++ b/jsapi/LuCI.form.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3739,7 +3891,7 @@ m.render().then((node) => { @@ -3853,6 +4005,9 @@ m.render().then((node) => {
    NamedSection
    +
    RangeSliderValue
    +
    +
    RichListValue
    @@ -3895,7 +4050,7 @@ m.render().then((node) => {
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.fs.html b/jsapi/LuCI.fs.html index 3a4c14db05..455591c8d0 100644 --- a/jsapi/LuCI.fs.html +++ b/jsapi/LuCI.fs.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6081,7 +6233,7 @@ the failure reason.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.headers.html b/jsapi/LuCI.headers.html index af0721777c..3f6508c5b4 100644 --- a/jsapi/LuCI.headers.html +++ b/jsapi/LuCI.headers.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4097,7 +4249,7 @@ Note: Header-Names are case-insensitive.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.html b/jsapi/LuCI.html index 67cd9b2daa..b719d215ee 100644 --- a/jsapi/LuCI.html +++ b/jsapi/LuCI.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -8673,7 +8825,7 @@ else null.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.network.Device.html b/jsapi/LuCI.network.Device.html index cabec6b738..aaa3c8200d 100644 --- a/jsapi/LuCI.network.Device.html +++ b/jsapi/LuCI.network.Device.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6463,7 +6615,7 @@ when it is down or absent.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.network.Hosts.html b/jsapi/LuCI.network.Hosts.html index e263b9230b..2c73804807 100644 --- a/jsapi/LuCI.network.Hosts.html +++ b/jsapi/LuCI.network.Hosts.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5023,7 +5175,7 @@ is used as hint.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.network.Protocol.html b/jsapi/LuCI.network.Protocol.html index ddbe1eb83a..5ae652493b 100644 --- a/jsapi/LuCI.network.Protocol.html +++ b/jsapi/LuCI.network.Protocol.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -8359,7 +8511,7 @@ configuration.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.network.WifiDevice.html b/jsapi/LuCI.network.WifiDevice.html index 77d0fe4bd3..93899c0603 100644 --- a/jsapi/LuCI.network.WifiDevice.html +++ b/jsapi/LuCI.network.WifiDevice.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5400,7 +5552,7 @@ configuration.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.network.WifiNetwork.html b/jsapi/LuCI.network.WifiNetwork.html index 5eeba7cffd..a51b191913 100644 --- a/jsapi/LuCI.network.WifiNetwork.html +++ b/jsapi/LuCI.network.WifiNetwork.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -8084,7 +8236,7 @@ configuration.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.network.WifiVlan.html b/jsapi/LuCI.network.WifiVlan.html index 018b5fcd28..1f68a6dc7c 100644 --- a/jsapi/LuCI.network.WifiVlan.html +++ b/jsapi/LuCI.network.WifiVlan.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4302,7 +4454,7 @@ if it is different than the vlan id
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.network.html b/jsapi/LuCI.network.html index ad93f45253..21063844a8 100644 --- a/jsapi/LuCI.network.html +++ b/jsapi/LuCI.network.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -9930,7 +10082,7 @@ conjunction with quality to calculate a quality percentage.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time) diff --git a/jsapi/LuCI.poll.html b/jsapi/LuCI.poll.html index 4d9ffd6953..98df74c6e3 100644 --- a/jsapi/LuCI.poll.html +++ b/jsapi/LuCI.poll.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4480,7 +4632,7 @@ run to begin with.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.request.html b/jsapi/LuCI.request.html index 654c7d5dc9..61a2c608fe 100644 --- a/jsapi/LuCI.request.html +++ b/jsapi/LuCI.request.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5415,7 +5567,7 @@ instances as sole argument during the HTTP request transfer.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.request.poll.html b/jsapi/LuCI.request.poll.html index a83416e4b9..7c583c8734 100644 --- a/jsapi/LuCI.request.poll.html +++ b/jsapi/LuCI.request.poll.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4599,7 +4751,7 @@ else null.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.response.html b/jsapi/LuCI.response.html index bd81c8f945..9a36b629b3 100644 --- a/jsapi/LuCI.response.html +++ b/jsapi/LuCI.response.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4557,7 +4709,7 @@ using String() and treated as response text.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.rpc.html b/jsapi/LuCI.rpc.html index 7ddd318146..983f81deac 100644 --- a/jsapi/LuCI.rpc.html +++ b/jsapi/LuCI.rpc.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5888,7 +6040,7 @@ to the expect and filter declarations.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.session.html b/jsapi/LuCI.session.html index 915277ed9b..870d2f97a5 100644 --- a/jsapi/LuCI.session.html +++ b/jsapi/LuCI.session.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4327,7 +4479,7 @@ being put in the session store.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.uci.html b/jsapi/LuCI.uci.html index 3c6303fb0d..a70e88361a 100644 --- a/jsapi/LuCI.uci.html +++ b/jsapi/LuCI.uci.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7864,7 +8016,7 @@ associated name as arguments.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.AbstractElement.html b/jsapi/LuCI.ui.AbstractElement.html index adc38067db..ed170a39d3 100644 --- a/jsapi/LuCI.ui.AbstractElement.html +++ b/jsapi/LuCI.ui.AbstractElement.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5431,7 +5583,7 @@ and are displayed in a slightly faded style.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.Checkbox.html b/jsapi/LuCI.ui.Checkbox.html index d98a6c6b1b..3459dd3556 100644 --- a/jsapi/LuCI.ui.Checkbox.html +++ b/jsapi/LuCI.ui.Checkbox.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5545,7 +5697,7 @@ it is required for HTML based form submissions.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.ComboButton.html b/jsapi/LuCI.ui.ComboButton.html index 51ef1f1661..79fd323594 100644 --- a/jsapi/LuCI.ui.ComboButton.html +++ b/jsapi/LuCI.ui.ComboButton.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5575,7 +5727,7 @@ choice value as second argument.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.Combobox.html b/jsapi/LuCI.ui.Combobox.html index e17f477f66..cb9f988496 100644 --- a/jsapi/LuCI.ui.Combobox.html +++ b/jsapi/LuCI.ui.Combobox.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5478,7 +5630,7 @@ forcibly set to true.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.Dropdown.html b/jsapi/LuCI.ui.Dropdown.html index 7e2a193a94..9e5c4109d2 100644 --- a/jsapi/LuCI.ui.Dropdown.html +++ b/jsapi/LuCI.ui.Dropdown.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6276,7 +6428,7 @@ expression. Only applicable when create is true.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time) diff --git a/jsapi/LuCI.ui.DynamicList.html b/jsapi/LuCI.ui.DynamicList.html index db4d05b238..6683bdffbe 100644 --- a/jsapi/LuCI.ui.DynamicList.html +++ b/jsapi/LuCI.ui.DynamicList.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5653,7 +5805,7 @@ it to remain unselected.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.FileUpload.html b/jsapi/LuCI.ui.FileUpload.html index b0d270ace3..2e367cb223 100644 --- a/jsapi/LuCI.ui.FileUpload.html +++ b/jsapi/LuCI.ui.FileUpload.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3716,7 +3868,7 @@ external JavaScript, use L.require("ui").then(...) and ac @@ -4013,7 +4165,7 @@ upload control.

    @@ -4504,7 +4656,7 @@ registered.

    @@ -5048,7 +5200,7 @@ trigger input value validation.

    @@ -5576,7 +5728,7 @@ ACL setup for the current session.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.Hiddenfield.html b/jsapi/LuCI.ui.Hiddenfield.html index 3570a1c529..2a77a267e2 100644 --- a/jsapi/LuCI.ui.Hiddenfield.html +++ b/jsapi/LuCI.ui.Hiddenfield.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3716,7 +3868,7 @@ external JavaScript, use L.require("ui").then(...) and ac @@ -4012,7 +4164,7 @@ external JavaScript, use L.require("ui").then(...) and ac @@ -4503,7 +4655,7 @@ registered.

    @@ -5047,7 +5199,7 @@ trigger input value validation.

    @@ -5256,7 +5408,7 @@ trigger validation runs, e.g. when programmatically altering values.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.Select.html b/jsapi/LuCI.ui.Select.html index 3b96835b49..bd7bd0a188 100644 --- a/jsapi/LuCI.ui.Select.html +++ b/jsapi/LuCI.ui.Select.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5608,7 +5760,7 @@ selected yet. Only applicable to the select widget type.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.Slider.html b/jsapi/LuCI.ui.Slider.html new file mode 100644 index 0000000000..f7e2e5ea9a --- /dev/null +++ b/jsapi/LuCI.ui.Slider.html @@ -0,0 +1,5384 @@ + + + + + Class: Slider + + + + + + + + + + + + + + + + + +
    + + +
    +

    Class: Slider

    + + + + +
    + +
    +

    + LuCI.ui. + + Slider +

    + +

    The RangeSlider class implements a widget which allows the user to set a +value from a predefined range.

    +

    UI widget instances are usually not supposed to be created by view code +directly. Instead they're implicitly created by LuCI.form when +instantiating CBI forms.

    +

    This class is automatically instantiated as part of LuCI.ui. To use it +in views, use 'require ui' and refer to ui.Slider. To import it in +external JavaScript, use L.require("ui").then(...) and access the +Slider property of the class instance value.

    + +
    + +
    +
    + + + + +
    +
    +

    + + new LuCI.ui.Slider(value) +

    + + + + +
    + + +
    +
    + + +
    +

    Instantiate a range slider widget.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDefaultDescription
    value + + +string +| + +Array.<string> + + + + + + null + + + + + optional + + + + + +

    ...

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + +
    + + +

    Extends

    + + + + + + + + + + + + + + + +

    Methods

    + +
    + +
    +
    +

    + + inherited + + getValidationError(){string} +

    + + + + +
    + + +
    +
    + + +
    +

    Returns the current validation error

    +
    + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + string + + + The validation error at this time
    + + + + +
    + + + +
    +
    +

    + + inherited + + getValue(){string|Array.<string>|null} +

    + + +
    + ui.js, line 81 +
    + +
    + + +
    +
    + + +
    +

    Read the current value of the input widget.

    +
    + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + string + | + + Array.<string> + | + + null + + + The current value of the input element. For simple inputs like text +fields or selects, the return value type will be a - possibly empty - +string. Complex widgets such as DynamicList instances may result in +an array of strings or null for unset values.
    + + + + +
    + + + +
    +
    +

    + + inherited + + isChanged(){boolean} +

    + + + + +
    + + +
    +
    + + +
    +

    Check whether the input value was altered by the user.

    +
    + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + boolean + + + Returns true if the input value has been altered by the user or +false if it is unchanged. Note that if the user modifies the initial +value and changes it back to the original state, it is still reported +as changed.
    + + + + +
    + + + +
    +
    +

    + + inherited + + isValid(){boolean} +

    + + + + +
    + + +
    +
    + + +
    +

    Check whether the current input value is valid.

    +
    + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + boolean + + + Returns true if the current input value is valid or false if it does +not meet the validation constraints.
    + + + + +
    + + + +
    +
    +

    + + inherited + + registerEvents(targetNode, synevent, events) +

    + + + + +
    + + +
    +
    + + +
    +

    Dispatch a custom (synthetic) event in response to received events.

    +

    Sets up event handlers on the given target DOM node for the given event +names that dispatch a custom event of the given type to the widget root +DOM node.

    +

    The primary purpose of this function is to set up a series of custom +uniform standard events such as widget-update, validation-success, +validation-failure etc. which are triggered by various different +widget specific native DOM events.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    targetNode + + +Node + + + + + +

    Specifies the DOM node on which the native event listeners should be +registered.

    synevent + + +string + + + + + +

    The name of the custom event to dispatch to the widget root DOM node.

    events + + +Array.<string> + + + + + +

    The native DOM events for which event handlers should be registered.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + render(){Node} +

    + + + + +
    + + +
    +
    + + +
    +

    Render the widget, set up event listeners and return resulting markup.

    +
    + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + Node + + + Returns a DOM Node or DocumentFragment containing the rendered +widget markup.
    + + + + +
    + + + +
    +
    +

    + + inherited + + setChangeEvents(targetNode, events) +

    + + + + +
    + + +
    +
    + + +
    +

    Set up listeners for native DOM events that may change the widget value.

    +

    Sets up event handlers on the given target DOM node for the given event +names which may cause the input value to change completely, such as +change events in a select menu. In contrast to update events, such +change events will not trigger input value validation but they may cause +field dependencies to get re-evaluated and will mark the input widget +as dirty.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    targetNode + + +Node + + + + + + + + + + +

    Specifies the DOM node on which the event listeners should be registered.

    events + + +string + + + + + + + + + + repeatable + + +

    The DOM events for which event handlers should be registered.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + setPlaceholder(value) +

    + + + + +
    + + +
    +
    + + +
    +

    Set the current placeholder value of the input widget.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    value + + +string +| + +Array.<string> +| + +null + + + + + +

    The placeholder to set for the input element. Only applicable to text +inputs, not to radio buttons, selects or similar.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + setUpdateEvents(targetNode, events) +

    + + + + +
    + + +
    +
    + + +
    +

    Set up listeners for native DOM events that may update the widget value.

    +

    Sets up event handlers on the given target DOM node for the given event +names which may cause the input value to update, such as keyup or +onclick events. In contrast to change events, such update events will +trigger input value validation.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    targetNode + + +Node + + + + + + + + + + +

    Specifies the DOM node on which the event listeners should be registered.

    events + + +string + + + + + + + + + + repeatable + + +

    The DOM events for which event handlers should be registered.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + setValue(value) +

    + + +
    + ui.js, line 99 +
    + +
    + + +
    +
    + + +
    +

    Set the current value of the input widget.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    value + + +string +| + +Array.<string> +| + +null + + + + + +

    The value to set the input element to. For simple inputs like text +fields or selects, the value should be a - possibly empty - string. +Complex widgets such as DynamicList instances may accept string array +or null values.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + inherited + + triggerValidation() +

    + + + + +
    + + +
    +
    + + +
    +

    Force validation of the current input value.

    +

    Usually input validation is automatically triggered by various DOM events +bound to the input widget. In some cases it is required though to manually +trigger validation runs, e.g. when programmatically altering values.

    +
    + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + +
    + + + + + + + +
    + +
    + + + + + + + +
    + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time) +
    +
    +
    + + + + \ No newline at end of file diff --git a/jsapi/LuCI.ui.Textarea.html b/jsapi/LuCI.ui.Textarea.html index ad7acdaa0f..d4c30c6633 100644 --- a/jsapi/LuCI.ui.Textarea.html +++ b/jsapi/LuCI.ui.Textarea.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5554,7 +5706,7 @@ contents.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.Textfield.html b/jsapi/LuCI.ui.Textfield.html index 1ad79a9186..410422b467 100644 --- a/jsapi/LuCI.ui.Textfield.html +++ b/jsapi/LuCI.ui.Textfield.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -5482,7 +5634,7 @@ corresponding <input> element is empty.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.changes.html b/jsapi/LuCI.ui.changes.html index 5ccf64c1f3..29d7a0dfcf 100644 --- a/jsapi/LuCI.ui.changes.html +++ b/jsapi/LuCI.ui.changes.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3713,7 +3865,7 @@ external JavaScript, use L.require("ui").then(...) and ac @@ -3798,7 +3950,7 @@ external JavaScript, use L.require("ui").then(...) and ac @@ -3939,7 +4091,7 @@ settings.

    @@ -4012,7 +4164,7 @@ and offer options to revert or apply the shown changes.

    @@ -4130,7 +4282,7 @@ UCI changeset structure.

    @@ -4206,7 +4358,7 @@ complete.

    @@ -4334,7 +4486,7 @@ is removed.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.html b/jsapi/LuCI.ui.html index ba2265c1c1..25ea0995cb 100644 --- a/jsapi/LuCI.ui.html +++ b/jsapi/LuCI.ui.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3710,7 +3862,7 @@ external JavaScript, use L.require("ui").then(...).

    - ui.js, line 3653 + ui.js, line 3770 @@ -3812,6 +3964,9 @@ external JavaScript, use L.require("ui").then(...).

    Select
    +
    Slider
    +
    +
    tabs
    @@ -3841,7 +3996,7 @@ external JavaScript, use L.require("ui").then(...).

    - ui.js, line 3862 + ui.js, line 3979 @@ -4071,7 +4226,7 @@ banner element.

    @@ -4334,7 +4489,7 @@ banner element.

    @@ -4648,7 +4803,7 @@ field validation manually or to bind it to further events. @@ -4785,7 +4940,7 @@ default.

    @@ -5011,7 +5166,7 @@ valid function value. @@ -5159,7 +5314,7 @@ requested indicator was not found. @@ -5235,7 +5390,7 @@ handler as-is without the need to bind it first.

    @@ -5387,7 +5542,7 @@ caught and rendered using LuCI.error() - ui.js, line 4082 + ui.js, line 4199 @@ -5629,7 +5784,7 @@ accepted by LuCI.dom.content().

    @@ -5832,7 +5987,7 @@ or rejecting with null when the connectivity check timed out. @@ -6106,7 +6261,7 @@ changes were made. @@ -6335,7 +6490,7 @@ element.

    @@ -6693,7 +6848,7 @@ cancelled by the user.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.menu.html b/jsapi/LuCI.ui.menu.html index 375086ccc8..3712e21471 100644 --- a/jsapi/LuCI.ui.menu.html +++ b/jsapi/LuCI.ui.menu.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3708,7 +3860,7 @@ @@ -3797,7 +3949,7 @@ @@ -3869,7 +4021,7 @@ next page load.

    @@ -4018,7 +4170,7 @@ internal root node if omitted.

    @@ -4381,7 +4533,7 @@ internal root node if omitted.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.ui.tabs.html b/jsapi/LuCI.ui.tabs.html index e315337710..53ad65e6b7 100644 --- a/jsapi/LuCI.ui.tabs.html +++ b/jsapi/LuCI.ui.tabs.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3714,7 +3866,7 @@ external JavaScript, use L.require("ui").then(...) and ac @@ -3799,7 +3951,7 @@ external JavaScript, use L.require("ui").then(...) and ac @@ -3928,7 +4080,7 @@ DOM node.

    @@ -4081,7 +4233,7 @@ DOM node.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.view.html b/jsapi/LuCI.view.html index 1e82dcba50..1f8dd4ae94 100644 --- a/jsapi/LuCI.view.html +++ b/jsapi/LuCI.view.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4685,7 +4837,7 @@ to a Node value.
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/LuCI.xhr.html b/jsapi/LuCI.xhr.html index 2d665ce86b..28710c26eb 100644 --- a/jsapi/LuCI.xhr.html +++ b/jsapi/LuCI.xhr.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4649,7 +4801,7 @@ when invoked.

    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:55 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/form.js.html b/jsapi/form.js.html index 59428bc0a6..e83acd51ca 100644 --- a/jsapi/form.js.html +++ b/jsapi/form.js.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7803,6 +7955,155 @@ const CBIRichListValue = CBIListValue.extend(/** @lends LuCI.form.ListValue.prot } }); +/** + * @class RangeSliderValue + * @memberof LuCI.form + * @augments LuCI.form.Value + * @hideconstructor + * @classdesc + * + * The `RangeSliderValue` class implements a range slider input using + * {@link LuCI.ui.RangeSlider}. It is useful in cases where a value shall fall + * within a predetermined range. This helps omit various error checks for such + * values. The currently chosen value is displayed to the side of the slider. + * + * @param {LuCI.form.Map|LuCI.form.JSONMap} form + * The configuration form this section is added to. It is automatically passed + * by [option()]{@link LuCI.form.AbstractSection#option} or + * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the + * option to the section. + * + * @param {LuCI.form.AbstractSection} section + * The configuration section this option is added to. It is automatically passed + * by [option()]{@link LuCI.form.AbstractSection#option} or + * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the + * option to the section. + * + * @param {string} option + * The name of the UCI option to map. + * + * @param {string} [title] + * The title caption of the option element. + * + * @param {string} [description] + * The description text of the option element. + */ +const CBIRangeSliderValue = CBIValue.extend(/** @lends LuCI.form.RangeSliderValue.prototype */ { + __name__: 'CBI.RangeSliderValue', + + /** + * Minimum value the slider can represent. + * @name LuCI.form.RangeSliderValue.prototype#min + * @type number + * @default 0 + */ + + /** + * Maximum value the slider can represent. + * @name LuCI.form.RangeSliderValue.prototype#max + * @type number + * @default 100 + */ + + /** + * Step size for each tick of the slider, or the special value "any" when + * handling arbitrary precision floating point numbers. + * @name LuCI.form.RangeSliderValue.prototype#step + * @type string + * @default 1 + */ + + /** + * Set the default value for the slider. The default value is elided during + * save: meaning, a currently chosen value which matches the default is + * not saved. + * @name LuCI.form.RangeSliderValue.prototype#default + * @type string + * @default null + */ + + /** + * Override the calculate action. + * + * When this property is set to a function, it is invoked when the slider + * is adjusted. This might be useful to calculate and display a result which + * is more meaningful than the currently chosen value. The calculated value + * is displayed below the slider. + * + * @name LuCI.form.RangeSliderValue.prototype#calculate + * @type function + * @default null + */ + + /** + * Define the units of the calculated value. + * + * Suffix a unit string to the calculated value, e.g. 'seconds' or 'dBm'. + * + * @name LuCI.form.RangeSliderValue.prototype#calcunits + * @type string + * @default null + */ + + /** + * Whether to use the calculated result of the chosen value instead of the + * chosen value: the result of the calculation returned by the + * <code>calculate</code> function on the chosen value + * is written to the configuration instead of the chosen value. The + * <code>calcunits</code> displayed units are not included. + * + * Note: Implementers of the <code>calculate</code> function shall be + * mindful that it may be possible to return a NaN value which is seldom a + * sensible input for the underlying daemon or system. Verification of any + * calculated value is an exercise left to the implementer. + * + * @name LuCI.form.RangeSliderValue.prototype#usecalc + * @type boolean + * @default false + */ + + /** @private */ + renderWidget(section_id, option_index, cfgvalue) { + const slider = new ui.RangeSlider((cfgvalue != null) ? cfgvalue : this.default, { + id: this.cbid(section_id), + name: this.cbid(section_id), + optional: this.optional, + min: this.min, + max: this.max, + step: this.step, + calculate: this.calculate, + calcunits: this.calcunits, + usecalc: this.usecalc, + disabled: this.readonly || this.disabled, + datatype: this.datatype, + validate: this.validate, + }); + + this.widget = slider; + + return slider.render(); + }, + + /** + * Query the current form input value. + * + * @param {string} section_id + * The configuration section ID + * + * @returns {*} + * Returns the current input value. + */ + formvalue(section_id) { + const elem = this.getUIElement(section_id); + if (!elem) return null; + let val = (this.usecalc && (typeof this.calculate === 'function')) + ? elem.getCalculatedValue() + : elem.getValue(); + val = val?.toString(); + return (val === this.default?.toString()) ? null : val; + } +}); + /** * @class FlagValue * @memberof LuCI.form @@ -8726,6 +9027,7 @@ return baseclass.extend(/** @lends LuCI.form.prototype */ { DynamicList: CBIDynamicList, ListValue: CBIListValue, RichListValue: CBIRichListValue, + RangeSliderValue: CBIRangeSliderValue, Flag: CBIFlagValue, MultiValue: CBIMultiValue, TextValue: CBITextValue, @@ -8747,7 +9049,7 @@ return baseclass.extend(/** @lends LuCI.form.prototype */ {
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/fs.js.html b/jsapi/fs.js.html index 9acbf239de..e6e4968c44 100644 --- a/jsapi/fs.js.html +++ b/jsapi/fs.js.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4123,7 +4275,7 @@ return FileSystem;
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/global.html b/jsapi/global.html new file mode 100644 index 0000000000..94a8afad65 --- /dev/null +++ b/jsapi/global.html @@ -0,0 +1,4123 @@ + + + + + Global + + + + + + + + + + + + + + + + + +
    + + +
    +

    Global

    + + + + +
    + +
    +

    + +

    + +
    + +
    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + + + + + + + + + + +

    Methods

    + +
    + +
    +
    +

    + + getValue() +

    + + + + +
    + + +
    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + render() +

    + + + + +
    + + +
    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + + + +
    +
    +

    + + setValue() +

    + + + + +
    + + +
    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + +
    + +
    + + + + + + + +
    + +
    + + + + + + + +
    + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time) +
    +
    +
    + + + + \ No newline at end of file diff --git a/jsapi/index.html b/jsapi/index.html index 03bfdab08d..b238d2a800 100644 --- a/jsapi/index.html +++ b/jsapi/index.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -3710,7 +3862,7 @@ is the central JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time) diff --git a/jsapi/luci.js.html b/jsapi/luci.js.html index c5b4227ba3..67ea209173 100644 --- a/jsapi/luci.js.html +++ b/jsapi/luci.js.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -7119,7 +7271,7 @@
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/network.js.html b/jsapi/network.js.html index 1fb41ef7b9..297c6eb270 100644 --- a/jsapi/network.js.html +++ b/jsapi/network.js.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -8244,7 +8396,7 @@ return Network;
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/rpc.js.html b/jsapi/rpc.js.html index 17b0b22b81..1685b6fe93 100644 --- a/jsapi/rpc.js.html +++ b/jsapi/rpc.js.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4179,7 +4331,7 @@ return baseclass.extend(/** @lends LuCI.rpc.prototype */ {
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/uci.js.html b/jsapi/uci.js.html index 55d59df0c9..ab30435486 100644 --- a/jsapi/uci.js.html +++ b/jsapi/uci.js.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -4753,7 +4905,7 @@ return baseclass.extend(/** @lends LuCI.uci.prototype */ {
    - Documentation generated by JSDoc 3.6.11 on Sun Jun 22 2025 21:04:52 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.11 on Wed Jun 25 2025 14:52:54 GMT+0000 (Coordinated Universal Time)
    diff --git a/jsapi/ui.js.html b/jsapi/ui.js.html index 6fa16fdb02..cf5b793266 100644 --- a/jsapi/ui.js.html +++ b/jsapi/ui.js.html @@ -1456,6 +1456,112 @@
  • +
  • + + LuCI.form.RangeSliderValue + + + + + + + +
  • +
  • LuCI.form.RichListValue @@ -3472,6 +3578,52 @@
  • +
  • + + LuCI.ui.Slider + + + + + + + +
  • +
  • LuCI.ui.tabs @@ -6327,6 +6479,123 @@ const UIDynamicList = UIElement.extend(/** @lends LuCI.ui.DynamicList.prototype } }); +/** + * Instantiate a range slider widget. + * + * @constructor Slider + * @memberof LuCI.ui + * @augments LuCI.ui.AbstractElement + * + * @classdesc + * + * The `RangeSlider` class implements a widget which allows the user to set a + * value from a predefined range. + * + * UI widget instances are usually not supposed to be created by view code + * directly. Instead they're implicitly created by `LuCI.form` when + * instantiating CBI forms. + * + * This class is automatically instantiated as part of `LuCI.ui`. To use it + * in views, use `'require ui'` and refer to `ui.Slider`. To import it in + * external JavaScript, use `L.require("ui").then(...)` and access the + * `Slider` property of the class instance value. + * + * @param {string|string[]} [value=null] + * ... + * + */ +const UIRangeSlider = UIElement.extend({ + __init__(value, options) { + this.value = value; + this.options = Object.assign({ + optional: true, + min: 0, + max: 100, + step: 1, + calculate: null, + calcunits: null, + usecalc: false, + disabled: false, + }, options); + }, + + /** @override */ + render() { + this.sliderEl = E('input', { + 'type': 'range', + 'id': this.options.id, + 'min': this.options.min, + 'max': this.options.max, + 'step': this.options.step || 'any', + 'value': this.value, + 'disabled': this.options.disabled ? '' : null + }); + + this.calculatedvalue = (typeof this.options.calculate === 'function') + ? this.options.calculate(this.value) + : null; + + this.calcEl = E('output', { 'class': 'cbi-range-slider-calc' }, this.calculatedvalue); + + this.calcunitsEl = E('span', { 'class': 'cbi-range-slider-calc-units' }, + this.options.calcunits + ? '&nbsp;' + this.options.calcunits + : '' + ); + + const container = E('div', { 'class': 'cbi-range-slider' }, [ + this.sliderEl, + this.valueEl = E('output', { 'for': this.options.id, 'class': 'cbi-range-slider-value' }, this.value), + this.calculatedvalue ? E('br') : null, + this.calculatedvalue ? this.calcEl : null, + this.calculatedvalue ? this.calcunitsEl : null, + ].filter(Boolean)); + + this.node = container; + + this.setUpdateEvents(this.sliderEl, 'input', 'blur'); + this.setChangeEvents(this.sliderEl, 'change'); + + this.sliderEl.addEventListener('input', () => { + const val = this.sliderEl.value; + this.valueEl.textContent = val; + + if (typeof this.options.calculate === 'function') { + // update the stored calculated value, and the displayed values + this.calculatedvalue = this.options.calculate(val); + this.calcEl.textContent = this.calculatedvalue; + } + + this.node.setAttribute('data-changed', true); + }); + + dom.bindClassInstance(container, this); + + return container; + }, + + /** @override */ + getValue() { + return this.sliderEl.value; + }, + + /** @private */ + getCalculatedValue() { + return this.calculatedvalue; + }, + + /** @override */ + setValue(value) { + this.sliderEl.value = value; + this.valueEl.textContent = value; + + if (typeof this.options.calculate === 'function') { + this.calculatedvalue = this.options.calculate(value); + this.calcEl.textContent = this.calculatedvalue; + } + } +}); + /** * Instantiate a hidden input field widget. * @@ -8858,6 +9127,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { Select: UISelect, Dropdown: UIDropdown, DynamicList: UIDynamicList, + RangeSlider: UIRangeSlider, Combobox: UICombobox, ComboButton: UIComboButton, Hiddenfield: UIHiddenfield, @@ -8877,7 +9147,7 @@ return UI; -- 2.30.2