TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _deprecation-99084-1667981931:
|
||||
|
||||
===============================================================
|
||||
Deprecation: #99084 - Make trigger of context menu configurable
|
||||
===============================================================
|
||||
|
||||
See :issue:`99084`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
The context menu JavaScript API was adapted to also support opening
|
||||
the menu through the "contextmenu" event type (right click) only.
|
||||
The configuration for the context menu was streamlined and now reflects
|
||||
its purpose. The trigger can now be set to "click" or "contextmenu".
|
||||
|
||||
|
||||
Impact
|
||||
======
|
||||
|
||||
Using the deprecated JavaScript API will trigger a warning in the console.
|
||||
|
||||
|
||||
Affected installations
|
||||
======================
|
||||
|
||||
All extensions that use the context menu.
|
||||
|
||||
|
||||
Migration
|
||||
=========
|
||||
|
||||
Replace the trigger :html:`class="t3js-contextmenutrigger"` with
|
||||
:html:`data-contextmenu-trigger="click"`. Prefix all configuration with
|
||||
:html:`data-contextmenu-`.
|
||||
|
||||
Before
|
||||
------
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<a href="#"
|
||||
class="t3js-contextmenutrigger"
|
||||
data-table="pages"
|
||||
data-uid="10"
|
||||
data-context="tree"
|
||||
>...</a>
|
||||
|
||||
After
|
||||
-----
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<a href="#"
|
||||
data-contextmenu-trigger="click"
|
||||
data-contextmenu-table="pages"
|
||||
data-contextmenu-uid="10"
|
||||
data-contextmenu-context="tree"
|
||||
>...</a>
|
||||
|
||||
|
||||
.. index:: Backend, JavaScript, NotScanned
|
||||
Reference in New Issue
Block a user