Skip to content

docs: Document tableheader.html.twig helper and its new tooltip parameter#594

Draft
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/dev-tableheader-tooltip-16517
Draft

docs: Document tableheader.html.twig helper and its new tooltip parameter#594
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/dev-tableheader-tooltip-16517

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Adds a "Table header template" page under Design templates documenting the @MauticCore/Helper/tableheader.html.twig helper, focused on the new optional tooltip parameter added in mautic/mautic PR #16517. Covers how to add a header tooltip to any list column, the no-JS-setup behavior, html_attr escaping, and the helper's common parameters. Also registers the page in the toctree and accepts the plural "tooltips" in the Mautic vocabulary.

Trigger Events


Tip: Worried about broken links? Ask Promptless to find and fix them automatically 🔗

Adds a developer-docs page for the @MauticCore/Helper/tableheader.html.twig
template, covering the new optional tooltip parameter (mautic/mautic #16517)
and the helper's common parameters. Adds the page to the Design templates
toctree and accepts the plural 'tooltips' in the Mautic vocabulary.
Pass an optional ``tooltip`` key to show a tooltip when a User hovers over a column header. The tooltip works on plain non-sortable columns and on sortable or filterable columns, as well as the bulk-select checkbox column, which already supported it.

.. code-block:: twig

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documented the new optional tooltip key added to tableheader.html.twig in this PR, which extends data-toggle="tooltip" support from the bulk-select checkall column to plain non-sortable and sortable/filterable columns. The example usage and the |trans + html_attr escaping behavior come directly from the PR's template diff and description.

Source: mautic/mautic#16517

@promptless-for-oss

Copy link
Copy Markdown
Contributor Author

Just a reminder: I review PR comments by default. If you want me to ignore a specific comment, start it with aside or /aside.

@adiati98 adiati98 added this to the 7.2 milestone Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants