mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(tooltip-definition): export open prop, dispatch open/close events (#1057)
This commit is contained in:
parent
8b39ccae89
commit
20e61724c1
5 changed files with 55 additions and 16 deletions
|
@ -9,6 +9,12 @@ export interface TooltipDefinitionProps
|
|||
*/
|
||||
tooltipText?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to open the tooltip
|
||||
* @default false
|
||||
*/
|
||||
open?: boolean;
|
||||
|
||||
/**
|
||||
* Set the alignment of the tooltip relative to the icon
|
||||
* @default "center"
|
||||
|
@ -37,6 +43,8 @@ export interface TooltipDefinitionProps
|
|||
export default class TooltipDefinition extends SvelteComponentTyped<
|
||||
TooltipDefinitionProps,
|
||||
{
|
||||
open: CustomEvent<any>;
|
||||
close: CustomEvent<any>;
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue