documentation/content/developer/reference/javascript/services/view_service.rst
Simon Genin (ges) fd28f72c68 wip
2021-10-12 12:06:37 +02:00

36 lines
698 B
ReStructuredText

View Service
============
.. list-table::
:header-rows: 1
* - Technical name
- Dependencies
* - ``view_manager``
- ``model``
Overview
--------
The ``view_manager`` service is a low level service that helps with loading view
informations (such as the arch, the ``id`` and other view informations).
API
---
The ``view_manager`` service provide a single method:
* ``loadView(model: string, type: ViewType, viewId?: number | false): Promise<ViewDefinition>``
This method loads from the server the description for a view.
A ``ViewDefinition`` object contains the following information:
.. code-block::
- `arch (string)`
- `type (ViewType)`
- `viewId (number)`