* Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ // Load Dolibarr environment require '../../../../../../main.inc.php'; /** * @var DoliDB $db * @var HookManager $hookmanager * @var Translate $langs * @var User $user */ // Protection if external user if ($user->socid > 0) { accessforbidden(); } // Includes require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php'; // Load documentation translations $langs->load('uxdocumentation'); // $documentation = new Documentation($db); $group = 'ExperimentalUx'; $experimentAssetsPath = $documentation->baseUrl . '/experimental/experiments/freeze-tooltip/assets/'; $js = [ $experimentAssetsPath . 'freeze-by-alt-keypress.js' ]; $css = [ $experimentAssetsPath . 'freeze-by-alt-keypress.css' ]; // Output html head + body - Param is Title $documentation->docHeader($langs->trans('ExperimentalUxFreezeTooltip', $group), $js, $css); // Set view for menu and breadcrumb $documentation->view = [$group, 'ExperimentalUxFreezeTooltip']; // Output sidebar $documentation->showSidebar(); ?>
showBreadCrumb(); ?>

trans('ExperimentalUxFreezeTooltip'); ?>

showSummary(); ?>

Tooltip Freeze with Alt Key

A new feature allows users to freeze tooltips in Dolibarr by holding down the Alt key. This makes it easier to read long tooltips without having to keep the cursor perfectly still.

How It Works

  1. Hover over an element that displays a tooltip.
  2. Press and hold the Alt key while the tooltip is visible.
  3. The tooltip remains displayed even if you move the cursor away.
  4. Release the Alt key to hide the tooltip.

Use Cases

  • Reading detailed information in tooltips without worrying about cursor movement.
  • Copying text from tooltips without them disappearing.
  • Click on links in tooltips.

Limitations

  • May not work on all tooltips, depending on their implementation. Only work on .classfortooltip class
  • Currently available only on experimental pages.

Example

Welcome to Dolibarr, an open-source ERP & CRM solution. This platform helps businesses manage their CRM and ERP needs efficiently.

For documentation, visit our Wiki. Developers can contribute on GitHub.

try tooltip in a tooltip

Need help? Check out the Community Forum.

Try a link with attribute target="_blank"
Open website in a new window.

'; ?>
docFooter(); ?>