You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/igniteui-angular/src/lib/directives/tooltip/README.md
+86-2Lines changed: 86 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,15 +100,99 @@ Since the **IgxTooltip** directive extends the **IgxToggle** directive and there
100
100
| tooltipDisabled | boolean | Specifies if the tooltip should not show when hovering its target with the mouse. (defaults to false) |
101
101
| tooltipHidden | boolean | Indicates if the tooltip is currently hidden. |
102
102
| nativeElement | any | Reference to the native element of the directive. |
103
+
| positionSettings | PositionSettings | Controls the position and animation settings used by the tooltip. |
104
+
| hasArrow | boolean | Controls whether to display an arrow indicator for the tooltip. Defaults to `false`. |
105
+
| sticky | boolean | When set to `true`, the tooltip renders a default close icon `x`. The tooltip remains visible until the user closes it via the close icon `x` or `Esc` key. Defaults to `false`. |
106
+
| closeButtonTemplate | TemplateRef<any> | Allows templating the default close icon `x`. |
| showTooltip | void | N/A | Shows the tooltip after the amount of ms specified by the `showDelay` property. |
108
-
| hideTooltip | void | N/A | Hides the tooltip after the amount of ms specified by the `hideDelay` property. |
127
+
| showTooltip | void | N/A | Shows the tooltip. |
128
+
| hideTooltip | void | N/A | Hides the tooltip. |
109
129
110
130
### Events
111
131
|Name|Description|Cancelable|Event arguments|
112
132
|--|--|--|--|
113
133
| tooltipShow | Emitted when the tooltip starts showing. (This event is fired before the start of the countdown to showing the tooltip.) | True | ITooltipShowEventArgs |
114
134
| tooltipHide | Emitted when the tooltip starts hiding. (This event is fired before the start of the countdown to hiding the tooltip.) | True | ITooltipHideEventArgs |
135
+
136
+
### Notes
137
+
138
+
The `IgxTooltipTarget` uses the `TooltipPositionStrategy` to position the tooltip and arrow element. If a custom position strategy is used (`overlaySettings.positionStrategy`) and `hasArrow` is set to `true`, the custom strategy should extend the `TooltipPositionStrategy`. Otherwise, the arrow will not be displayed.
139
+
140
+
The arrow element is positioned based on the provided position settings. If the directions and starting points do not correspond to any of the predefined position values, the arrow is positioned in the top middle side of the tooltip (default tooltip position `bottom`).
141
+
142
+
143
+
| Position | Horizontal Direction | Horizontal Start Point | Vertical Direction | Vertical Start Point |
0 commit comments