feat: addScript and addInitScript docs

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ
2023-10-19 15:13:38 +02:00
parent 0030740ff1
commit 4e6db05abd
3 changed files with 86 additions and 16 deletions

View File

@@ -22,6 +22,13 @@ Front-end changes
Added APIs
^^^^^^^^^^
* The new Files initialising much faster than the old one, you will face some
race conditions if you register some custom properties loading your scripts
by using the ``Util::addScript`` method.
We recommend you use the new ``Util::addInitScript`` method instead, your script
will be loaded right after the common core scripts and right before the Files app.
See :ref:`ApplicationJs` for more information.
* File actions: to register file actions, please use the dedicated API from https://npmjs.org/@nextcloud/files or
https://nextcloud-libraries.github.io/nextcloud-files/functions/registerFileAction.html
* New file menu: to register entries in the new file menu, please use the dedicated API from https://npmjs.org/@nextcloud/files or