From 683bc54fd9bfc22c900dc0cdfcd660d61da253ef Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 6 Aug 2020 17:58:47 +0200 Subject: docs: update js api docs Signed-off-by: Jo-Philipp Wich --- docs/jsapi/LuCI.form.NamedSection.html | 896 ++++++++++++++++++++++++++++++++- 1 file changed, 886 insertions(+), 10 deletions(-) (limited to 'docs/jsapi/LuCI.form.NamedSection.html') diff --git a/docs/jsapi/LuCI.form.NamedSection.html b/docs/jsapi/LuCI.form.NamedSection.html index 1a801b26e1..d4a538c185 100644 --- a/docs/jsapi/LuCI.form.NamedSection.html +++ b/docs/jsapi/LuCI.form.NamedSection.html @@ -292,8 +292,16 @@
  • cfgsections
  • +
  • cfgvalue
  • +
  • filter
  • +
  • formvalue
  • + +
  • getOption
  • + +
  • getUIElement
  • +
  • load
  • option
  • @@ -333,6 +341,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • readonly
  • @@ -423,6 +433,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -513,6 +525,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -599,6 +613,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -693,6 +709,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -783,6 +801,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -873,6 +893,8 @@
  • modaltitle
  • +
  • nodescriptions
  • +
  • parentoption
  • rowcolors
  • @@ -900,8 +922,16 @@
  • append
  • +
  • cfgvalue
  • +
  • filter
  • +
  • formvalue
  • + +
  • getOption
  • + +
  • getUIElement
  • +
  • load
  • option
  • @@ -939,6 +969,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -1071,8 +1103,12 @@ Members +
  • orientation
  • +
  • size
  • +
  • widget
  • +
  • datatype
  • default
  • @@ -1081,6 +1117,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -1225,6 +1263,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -1324,8 +1364,16 @@
  • cfgsections
  • +
  • cfgvalue
  • +
  • filter
  • +
  • formvalue
  • + +
  • getOption
  • + +
  • getUIElement
  • +
  • load
  • option
  • @@ -1367,6 +1415,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -1457,6 +1507,8 @@
  • modaltitle
  • +
  • nodescriptions
  • +
  • rowcolors
  • sectiontitle
  • @@ -1492,8 +1544,16 @@
  • append
  • +
  • cfgvalue
  • +
  • filter
  • +
  • formvalue
  • + +
  • getOption
  • + +
  • getUIElement
  • +
  • load
  • option
  • @@ -1539,6 +1599,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • password
  • @@ -1642,8 +1704,16 @@
  • cfgsections
  • +
  • cfgvalue
  • +
  • filter
  • +
  • formvalue
  • + +
  • getOption
  • + +
  • getUIElement
  • +
  • load
  • option
  • @@ -1687,6 +1757,8 @@
  • modalonly
  • +
  • onchange
  • +
  • optional
  • readonly
  • @@ -2520,6 +2592,8 @@
  • getLocalData
  • +
  • getToken
  • +
  • setLocalData
  • @@ -2670,6 +2744,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -2678,6 +2754,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -2748,6 +2826,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isChecked
  • isValid
  • @@ -2758,6 +2838,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -2798,12 +2880,16 @@
  • closeAllDropdowns
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • triggerValidation
  • @@ -2842,12 +2928,16 @@
  • closeAllDropdowns
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • triggerValidation
  • @@ -2888,6 +2978,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -2896,6 +2988,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -2936,6 +3030,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -2944,6 +3040,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -2980,6 +3078,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -2988,6 +3088,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -3020,6 +3122,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -3028,6 +3132,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -3098,6 +3204,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -3106,6 +3214,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -3170,6 +3280,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -3178,6 +3290,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -3214,6 +3328,8 @@
  • getValue
  • +
  • isChanged
  • +
  • isValid
  • registerEvents
  • @@ -3222,6 +3338,8 @@
  • setChangeEvents
  • +
  • setPlaceholder
  • +
  • setUpdateEvents
  • setValue
  • @@ -3345,7 +3463,7 @@ specified when constructing the class instance.

    @@ -3877,7 +3995,7 @@ this property will hold a reference to the parent option instance.

    @@ -3966,6 +4084,204 @@ section ID as sole element. User code should not normally change this.

    + + + + +
    +
    +

    + + inherited + + cfgvalue(section_id, option){null|string|Array.<string>|Object.<string, (null|string|Array.<string>)>} +

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

    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.

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

    The configuration section ID

    option + + +string + + + + + + + optional + + + + + +

    The name of the option to query

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + 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.
    + + + +
    @@ -3981,7 +4297,7 @@ section ID as sole element. User code should not normally change this.

    @@ -4120,6 +4436,566 @@ custom implementations.

    + + + + +
    +
    +

    + + inherited + + formvalue(section_id, option){null|string|Array.<string>|Object.<string, (null|string|Array.<string>)>} +

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

    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.

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

    The configuration section ID

    option + + +string + + + + + + + optional + + + + + +

    The name of the option to query

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + 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.
    + + + + +
    + + + +
    +
    +

    + + inherited + + getOption(option){null|LuCI.form.AbstractValue|Object.<string, LuCI.form.AbstractValue>} +

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

    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.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    option + + +string + + + + + + + optional + + + + + +

    The name of the option object to obtain

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + 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.
    + + + + +
    + + + +
    +
    +

    + + inherited + + getUIElement(section_id, option){null|LuCI.ui.AbstractElement|Object.<string, (null|LuCI.ui.AbstractElement)>} +

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

    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.

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

    The configuration section ID

    option + + +string + + + + + + + optional + + + + + +

    The name of the option to query

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + 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.
    + + + +
    @@ -4135,7 +5011,7 @@ custom implementations.

    @@ -4241,7 +5117,7 @@ elements load functions rejected with an error. @@ -4458,7 +5334,7 @@ descendent of 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