From a9a37f5f07dc98e05907d4aa61beb6a7ececaba2 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 13 Jan 2025 09:11:08 +0100 Subject: [PATCH] [Frontend] Update a table to make it more readable --- frontend/create_ux_bundle.rst | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/frontend/create_ux_bundle.rst b/frontend/create_ux_bundle.rst index 8faf0f44bb1..8f44a16f62e 100644 --- a/frontend/create_ux_bundle.rst +++ b/frontend/create_ux_bundle.rst @@ -142,21 +142,22 @@ Twig ``stimulus_*`` functions. Each controller has a number of options in ``package.json`` file: -================== ==================================================================================================== -Option Description -================== ==================================================================================================== -enabled Whether the controller should be enabled by default. -main Path to the controller file. -fetch How controller & dependencies are included when the page loads. - Use ``eager`` (default) to make controller & dependencies included in the JavaScript that's - downloaded when the page is loaded. - Use ``lazy`` to make controller & dependencies isolated into a separate file and only downloaded - asynchronously if (and when) the data-controller HTML appears on the page. -autoimport List of files to be imported with the controller. Useful e.g. when there are several CSS styles - depending on the frontend framework used (like Bootstrap 4 or 5, Tailwind CSS...). - The value must be an object with files as keys, and a boolean as value for each file to set - whether the file should be imported. -================== ==================================================================================================== +``enabled``: + Whether the controller should be enabled by default. +``main``: + Path to the controller file. +``fetch``: + How controller & dependencies are included when the page loads. + Use ``eager`` (default) to make controller & dependencies included in the + JavaScript that's downloaded when the page is loaded. + Use ``lazy`` to make controller & dependencies isolated into a separate file + and only downloaded asynchronously if (and when) the data-controller HTML + appears on the page. +``autoimport``: + List of files to be imported with the controller. Useful e.g. when there are + several CSS styles depending on the frontend framework used (like Bootstrap 4 + or 5, Tailwind CSS...). The value must be an object with files as keys, and + a boolean as value for each file to set whether the file should be imported. Specifics for Asset Mapper --------------------------