Files
OctoPrint/docs/jsclientlib/wizard.rst
2018-03-19 10:43:08 +01:00

30 lines
939 B
ReStructuredText

.. _sec-jsclientlib-wizard:
:mod:`OctoPrintClient.wizard`
-----------------------------
.. note::
All methods here require that the used API token or the existing browser session
has admin rights.
.. js:function:: OctoPrintClient.wizard.get(opts)
Retrieve additional data about registered wizards.
:param object opts: Additional options for the request
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
.. js:function:: OctoPrintClient.wizard.finish(handled, opts)
Inform wizards that the wizard dialog has been finished.
:param list handled: List of identifiers of handled wizards
:param object opts: Additional options for the request
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
.. seealso::
:ref:`Wizard API <sec-api-wizard>`
The documentation of the underlying wizard API.