tooltippackage.web-types.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
The newest version!
{
"$schema": "https://json.schemastore.org/web-types",
"name": "@vaadin/tooltip",
"version": "24.4.9",
"description-markup": "markdown",
"contributions": {
"html": {
"elements": [
{
"name": "vaadin-tooltip",
"description": "`` is a Web Component for creating tooltips.\n\n```html\n\n \n```\n\n### Styling\n\n`` uses `` internal\nthemable component as the actual visible overlay.\n\nSee [``](https://cdn.vaadin.com/vaadin-web-components/24.4.9/#/elements/vaadin-overlay) documentation\nfor `` parts.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|----------------------------------------\n`position` | Reflects the `position` property value.\n\nNote: the `theme` attribute value set on `` is\npropagated to the internal `` component.\n\n### Custom CSS Properties\n\nThe following custom CSS properties are available on the `` element:\n\nCustom CSS property | Description\n---------------------------------|-------------\n`--vaadin-tooltip-offset-top` | Used as an offset when the tooltip is aligned vertically below the target\n`--vaadin-tooltip-offset-bottom` | Used as an offset when the tooltip is aligned vertically above the target\n`--vaadin-tooltip-offset-start` | Used as an offset when the tooltip is aligned horizontally after the target\n`--vaadin-tooltip-offset-end` | Used as an offset when the tooltip is aligned horizontally before the target\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
"attributes": [
{
"name": "overlay-class",
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "focus-delay",
"description": "The delay in milliseconds before the tooltip\nis opened on keyboard focus, when not in manual mode.",
"value": {
"type": [
"number",
"null",
"undefined"
]
}
},
{
"name": "for",
"description": "The id of the element used as a tooltip trigger.\nThe element should be in the DOM by the time when\nthe attribute is set, otherwise a warning is shown.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "hide-delay",
"description": "The delay in milliseconds before the tooltip\nis closed on losing hover, when not in manual mode.\nOn blur, the tooltip is closed immediately.",
"value": {
"type": [
"number",
"null",
"undefined"
]
}
},
{
"name": "hover-delay",
"description": "The delay in milliseconds before the tooltip\nis opened on hover, when not in manual mode.",
"value": {
"type": [
"number",
"null",
"undefined"
]
}
},
{
"name": "manual",
"description": "When true, the tooltip is controlled programmatically\ninstead of reacting to focus and mouse events.",
"value": {
"type": [
"boolean",
"null",
"undefined"
]
}
},
{
"name": "opened",
"description": "When true, the tooltip is opened programmatically.\nOnly works if `manual` is set to `true`.",
"value": {
"type": [
"boolean",
"null",
"undefined"
]
}
},
{
"name": "position",
"description": "Position of the tooltip with respect to its target.\nSupported values: `top-start`, `top`, `top-end`,\n`bottom-start`, `bottom`, `bottom-end`, `start-top`,\n`start`, `start-bottom`, `end-top`, `end`, `end-bottom`.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "text",
"description": "String used as a tooltip content.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "theme",
"description": "The theme variants to apply to the component.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
}
],
"js": {
"properties": [
{
"name": "overlayClass",
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "ariaTarget",
"description": "Element used to link with the `aria-describedby`\nattribute. Supports array of multiple elements.\nWhen not set, defaults to `target`.",
"value": {
"type": [
"Object",
"null",
"undefined"
]
}
},
{
"name": "context",
"description": "Object with properties passed to `generator` and\n`shouldShow` functions for generating tooltip text\nor detecting whether to show the tooltip or not.",
"value": {
"type": [
"Object",
"null",
"undefined"
]
}
},
{
"name": "focusDelay",
"description": "The delay in milliseconds before the tooltip\nis opened on keyboard focus, when not in manual mode.",
"value": {
"type": [
"number",
"null",
"undefined"
]
}
},
{
"name": "for",
"description": "The id of the element used as a tooltip trigger.\nThe element should be in the DOM by the time when\nthe attribute is set, otherwise a warning is shown.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "generator",
"description": "Function used to generate the tooltip content.\nWhen provided, it overrides the `text` property.\nUse the `context` property to provide argument\nthat can be passed to the generator function.",
"value": {
"type": [
"Object",
"null",
"undefined"
]
}
},
{
"name": "hideDelay",
"description": "The delay in milliseconds before the tooltip\nis closed on losing hover, when not in manual mode.\nOn blur, the tooltip is closed immediately.",
"value": {
"type": [
"number",
"null",
"undefined"
]
}
},
{
"name": "hoverDelay",
"description": "The delay in milliseconds before the tooltip\nis opened on hover, when not in manual mode.",
"value": {
"type": [
"number",
"null",
"undefined"
]
}
},
{
"name": "manual",
"description": "When true, the tooltip is controlled programmatically\ninstead of reacting to focus and mouse events.",
"value": {
"type": [
"boolean",
"null",
"undefined"
]
}
},
{
"name": "opened",
"description": "When true, the tooltip is opened programmatically.\nOnly works if `manual` is set to `true`.",
"value": {
"type": [
"boolean",
"null",
"undefined"
]
}
},
{
"name": "position",
"description": "Position of the tooltip with respect to its target.\nSupported values: `top-start`, `top`, `top-end`,\n`bottom-start`, `bottom`, `bottom-end`, `start-top`,\n`start`, `start-bottom`, `end-top`, `end`, `end-bottom`.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "shouldShow",
"description": "Function used to detect whether to show the tooltip based on a condition,\ncalled every time the tooltip is about to be shown on hover and focus.\nThe function takes two parameters: `target` and `context`, which contain\nvalues of the corresponding tooltip properties at the time of calling.\nThe tooltip is only shown when the function invocation returns `true`.",
"value": {
"type": [
"Object",
"null",
"undefined"
]
}
},
{
"name": "target",
"description": "Reference to the element used as a tooltip trigger.\nThe target must be placed in the same shadow scope.\nDefaults to an element referenced with `for`.",
"value": {
"type": [
"Object",
"null",
"undefined"
]
}
},
{
"name": "text",
"description": "String used as a tooltip content.",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
}
],
"events": []
}
}
]
}
}
}