tooltip.py 579 B

12345678910111213141516
  1. from .mixins.text_element import TextElement
  2. class Tooltip(TextElement):
  3. def __init__(self, text: str = '') -> None:
  4. """Tooltip
  5. This element is based on Quasar's `QTooltip <https://quasar.dev/vue-components/tooltip>`_ component.
  6. It can be placed in another element to show additional information on hover.
  7. Instead of passing a string as the first argument, you can also nest other elements inside the tooltip.
  8. :param text: the content of the tooltip (default: '')
  9. """
  10. super().__init__(tag='q-tooltip', text=text)