From 0c3152c88d108a39b6f235300dd56fac81748aa6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 3 Apr 2020 13:28:38 +0200 Subject: docs: update js api docs Signed-off-by: Jo-Philipp Wich --- docs/jsapi/LuCI.ui.html | 156 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 155 insertions(+), 1 deletion(-) (limited to 'docs/jsapi/LuCI.ui.html') diff --git a/docs/jsapi/LuCI.ui.html b/docs/jsapi/LuCI.ui.html index 855151253..0d2768f8f 100644 --- a/docs/jsapi/LuCI.ui.html +++ b/docs/jsapi/LuCI.ui.html @@ -1048,6 +1048,8 @@
  • hideModal
  • +
  • instantiateView
  • +
  • itemlist
  • pingDevice
  • @@ -2974,6 +2976,158 @@ handler as-is without the need to bind it first.

    + + + + +
    +
    +

    + + instantiateView(path){Promise.<LuCI.view>} +

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

    Load specified view class path and set it up.

    +

    Transforms the given view path into a class name, requires it +using LuCI.require() and asserts that the +resulting class instance is a descendant of +LuCI.view.

    +

    By instantiating the view class, its corresponding contents are +rendered and included into the view area. Any runtime errors are +catched and rendered using LuCI.error().

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    path + + +string + + + + + +

    The view path to render.

    + + + +
    + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + +
    Returns:
    + + + + + + + + + + + + + + + + + + + + +
    TypeDescription
    + + Promise.<LuCI.view> + + + Returns a promise resolving to the loaded view instance.
    + + + +
    @@ -4290,7 +4444,7 @@ cancelled by the user. -- cgit v1.2.3