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

31 lines
577 B
ReStructuredText

Menu Service
============
.. list-table::
:header-rows: 1
* - Technical name
- Dependencies
* - ``menus``
- ``action_manager`` , ``router``
Overview
--------
The ``menus`` service is an asynchronous service: once the ``deploy`` method is
called, it will call the server (using the ``/web/webclient/load_menus/...`` url) to fetch
the data. Once it is done, the service is available and can be used to query
informations on the menu items.
API
---
Here is a description of all exported methods:
* ``get(menuId)``
* ``apps``
* ``getMenusAsTree(...)``