diff options
| author | 2025-10-02 09:33:53 -0400 | |
|---|---|---|
| committer | 2025-10-02 15:33:53 +0200 | |
| commit | 032316155c03ca1013644476b8f9413ba436b744 (patch) | |
| tree | b3315790d53f1c6ff1740cdf0fc9ac0e8e9393ca /docs | |
| parent | 0eab229d5231a198e98f974ae84d54bcebb085a1 (diff) | |
Add a new hook in the UI (#8054)
* Add a new hook in the UI
The new hook allows extension to add their own tool bar to navigate between
entries. For instance, if the user wants less or more buttons that what's
available by default.
See #7912
See #7913
* add link data to ease navigation
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/en/developers/03_Backend/05_Extensions.md | 1 | ||||
| -rw-r--r-- | docs/fr/developers/03_Backend/05_Extensions.md | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/en/developers/03_Backend/05_Extensions.md b/docs/en/developers/03_Backend/05_Extensions.md index cfdb4e692..c24ee0569 100644 --- a/docs/en/developers/03_Backend/05_Extensions.md +++ b/docs/en/developers/03_Backend/05_Extensions.md @@ -191,6 +191,7 @@ Example response for a `query_icon_info` request: * `menu_admin_entry` (`function() -> string`): add an entry at the end of the "Administration" menu, the returned string must be valid HTML (e.g. `<li class="item active"><a href="url">New entry</a></li>`). * `menu_configuration_entry` (`function() -> string`): add an entry at the end of the "Configuration" menu, the returned string must be valid HTML (e.g. `<li class="item active"><a href="url">New entry</a></li>`). * `menu_other_entry` (`function() -> string`): add an entry at the end of the header dropdown menu (i.e. after the "About" entry), the returned string must be valid HTML (e.g. `<li class="item active"><a href="url">New entry</a></li>`). +* `nav_entries` (`function() -> string`): will add DOM elements before the navigation buttons. * `nav_menu` (`function() -> string`): will be executed if the navigation was built. * `nav_reading_modes` (`function($reading_modes) -> array | null`): **TODO** add documentation. * `post_update` (`function(none) -> none`): **TODO** add documentation. diff --git a/docs/fr/developers/03_Backend/05_Extensions.md b/docs/fr/developers/03_Backend/05_Extensions.md index f790db5f4..a71919def 100644 --- a/docs/fr/developers/03_Backend/05_Extensions.md +++ b/docs/fr/developers/03_Backend/05_Extensions.md @@ -267,6 +267,8 @@ The following events are available: the header dropdown menu (i.e. after the "About" entry), the returned string must be valid HTML (e.g. `<li class="item active"><a href="url">New entry</a></li>`) +* `nav_entries` (`function() -> string`): ajoute des éléments DOM avant les boutons de navigation. +* `nav_menu` (`function() -> string`): sera exécuté si la navigation est générée. * `nav_reading_modes` (`function($reading_modes) -> array | null`): **TODO** add documentation * `post_update` (`function(none) -> none`): **TODO** add documentation |
