@engie-group/fluid-design-system-angular
Version:
Fluid Design System Angular
47 lines (37 loc) • 856 B
text/typescript
export type TooltipPlacement = 'left' | 'right' | 'top' | 'bottom';
export type TooltipArrowPlacement = 'start' | 'center' | 'end';
export class TooltipOptions {
/**
* Whether tooltip is inverse or no
*/
isInverse: boolean;
/**
* Whether tooltip has arrow or no
*/
hasArrow = true;
/**
* Tooltip label, if you want custom content unset the label and place content as element children
* e.g: `<nj-tooltip>Your Content</nj-tooltip>`
*/
label: string;
/**
* Tooltip id
*/
tooltipId: string;
/**
* Tooltip placement
*/
placement: TooltipPlacement = 'top';
/**
* Tooltip arrow placement
*/
arrowPlacement: TooltipArrowPlacement = 'center';
/**
* Whether tooltip management is standalone
*/
isStandalone = true;
/**
* Whether tooltip is animated
*/
isAnimated = true;
}