36 lines
698 B
ReStructuredText
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)`
|