From 683bc54fd9bfc22c900dc0cdfcd660d61da253ef Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich
Query underlying option configuration values.
+This function is sensitive to the amount of arguments passed to it; +if only one argument is specified, the configuration values of all +options within this section are returned as dictionary.
+If both the section ID and an option name are supplied, this function +returns the configuration value of the specified option only.
+Name | + + +Type | + + + +Description | +
---|---|---|
section_id |
+
+
+ + + +string + + + + | + + + +
+
+
+
+
+
+
+ The configuration section ID |
+
option |
+
+
+ + + +string + + + + | + + + +
+
+
+ optional
+
+
+
+
+
+ The name of the option to query |
+
Type | +Description | +
---|---|
+ + null + | + + string + | + + Array.<string> + | + + Object.<string, (null|string|Array.<string>)> + + + | +Returns either a dictionary of option names and their corresponding +configuration values or just a single configuration value, depending +on the amount of passed arguments. | +
Query underlying option widget input values.
+This function is sensitive to the amount of arguments passed to it; +if only one argument is specified, the widget input values of all +options within this section are returned as dictionary.
+If both the section ID and an option name are supplied, this function +returns the widget input value of the specified option only.
+Name | + + +Type | + + + +Description | +
---|---|---|
section_id |
+
+
+ + + +string + + + + | + + + +
+
+
+
+
+
+
+ The configuration section ID |
+
option |
+
+
+ + + +string + + + + | + + + +
+
+
+ optional
+
+
+
+
+
+ The name of the option to query |
+
Type | +Description | +
---|---|
+ + null + | + + string + | + + Array.<string> + | + + Object.<string, (null|string|Array.<string>)> + + + | +Returns either a dictionary of option names and their corresponding +widget input values or just a single widget input value, depending +on the amount of passed arguments. | +
Obtain underlying option objects.
+This function is sensitive to the amount of arguments passed to it; +if no option name is specified, all options within this section are +returned as dictionary.
+If an option name is supplied, this function returns the matching +LuCI.form.AbstractValue instance only.
+Name | + + +Type | + + + +Description | +
---|---|---|
option |
+
+
+ + + +string + + + + | + + + +
+
+
+ optional
+
+
+
+
+
+ The name of the option object to obtain |
+
Type | +Description | +
---|---|
+ + null + | + + LuCI.form.AbstractValue + | + + Object.<string, LuCI.form.AbstractValue> + + + | +Returns either a dictionary of option names and their corresponding +option instance objects or just a single object instance value, +depending on the amount of passed arguments. | +
Obtain underlying option LuCI.ui widget instances.
+This function is sensitive to the amount of arguments passed to it; +if only one argument is specified, the LuCI.ui widget instances of all +options within this section are returned as dictionary.
+If both the section ID and an option name are supplied, this function +returns the LuCI.ui widget instance value of the specified option only.
+Name | + + +Type | + + + +Description | +
---|---|---|
section_id |
+
+
+ + + +string + + + + | + + + +
+
+
+
+
+
+
+ The configuration section ID |
+
option |
+
+
+ + + +string + + + + | + + + +
+
+
+ optional
+
+
+
+
+
+ The name of the option to query |
+
Type | +Description | +
---|---|
+ + null + | + + LuCI.ui.AbstractElement + | + + Object.<string, (null|LuCI.ui.AbstractElement)> + + + | +Returns either a dictionary of option names and their corresponding +widget input values or just a single widget input value, depending +on the amount of passed arguments. | +
AbstractValue
.
@@ -4566,7 +5442,7 @@ not meeting the validation constraints of their respective elements.
@@ -4821,7 +5697,7 @@ the form element's markup, including the markup of any child elements.
@@ -5040,7 +5916,7 @@ contents. If omitted, no description will be rendered.
@@ -5510,7 +6386,7 @@ was neither a string nor a function.
--
cgit v1.2.3