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: CHANGELOG.md
+84-7Lines changed: 84 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
All notable changes for each version of this project will be documented in this file.
4
4
5
-
## 20.0.0
5
+
## 20.1.0
6
6
### General
7
7
-`IgxTooltipTarget`
8
8
-**Behavioral Changes**
@@ -11,10 +11,18 @@ All notable changes for each version of this project will be documented in this
11
11
- The `showTooltip` and `hideTooltip` methods do not take `showDelay`/`hideDelay` into account.
12
12
13
13
### New Features
14
+
15
+
-`IgxOverlay`
16
+
- Position Settings now accept a new optional `placement` input property of type `Placement`. Controls where to place the element relative to the target element. Supported values are `top`, `top-start`, `top-end`, `bottom`, `bottom-start`, `bottom-end`, `right`, `right-start`, `right-end`, `left`, `left-start`, `left-end`.
17
+
18
+
_Note:_`horizontalDirection`, `horizontalStartPoint`, `verticalDirection`, and `verticalStartPoint` has priority.
19
+
20
+
- Position Settings now accept a new optional `offset` input property of type `number`. Used to set the offset of the element from the target in pixels when shown in connected, elastic, or auto position strategy.
21
+
14
22
-`IgxTooltip`
15
23
- The tooltip now remains open while interacting with it.
16
24
-`IgxTooltipTarget`
17
-
- Introduced a new `hasArrow` input property. Controls whether to display an arrow indicator for the tooltip. Defaults to `false`.
25
+
- Introduced a new `positionSettings` input property. Controls the position and animation settings used by the tooltip.
18
26
- Introduced a new `sticky` input property. 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`.
19
27
- Introduced a new `closeButtonTemplate` input property that allows templating the default close icon `x`.
20
28
```html
@@ -26,16 +34,85 @@ All notable changes for each version of this project will be documented in this
26
34
</ng-template>
27
35
```
28
36
29
-
- Introduced a new `placement` input property of type `TooltipPlacement`. Controls where to place the tooltip relative to the target element. Default value is `bottom`. Supported values are `top`, `top-start`, `top-end`, `bottom`, `bottom-start`, `bottom-end`, `right`, `right-start`, `right-end`, `left`, `left-start`, `left-end`.
37
+
- Introduced a new `hasArrow` input property. Controls whether to display an arrow indicator for the tooltip. Defaults to `false`.
30
38
31
-
_Note:_ Positioning the arrow is based on the `placement` property. If `hasArrow` is set to `true`, changing the `placement` property will change the arrow position as well.
39
+
_Note:_ The arrow's position takes `positionSettings.placement` property into account. If `hasArrow` is set to `true`, changing the `placement` property will change the arrow position as well.
<span#tooltipRef="tooltip"igxTooltip>Hello there, I am a tooltip!</span>
35
43
```
36
-
- Introduced a new `offset` input property. Controls the offset of the tooltip from the target in pixels. Default value is 6.
44
+
```ts
45
+
public settings: PositionSettings = {
46
+
placement: Placement.TopStart
47
+
}
48
+
```
37
49
38
-
_Note:_ If a custom `positionStrategy` is used, the `placement` and `offset` properties (if set) will not be taken into account and the arrow (if enabled) will not be displayed.
50
+
_Note:_ The tooltip 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 implement the `ITooltipPositionStrategy` interface that exposes the `positionArrow(arrow: HTMLElement, arrowFit: ArrowFit)` method. Otherwise, the arrow will not be displayed.
51
+
52
+
_Note:_ The arrow element is positioned based on the `positionSettings.placement` property. If `horizontalDirection`, `horizontalStartPoint`, `verticalDirection`, and `verticalStartPoint` are used and the direction and starting point do not correspond to any of the predefined placement values, the arrow is positioned based on `Placement.Bottom` (top middle side of the tooltip).
53
+
54
+
The arrow can be positioned via a custom position strategy that implements the `positionArrow(arrow: HTMLElement, arrowFit: ArrowFit)` method.
55
+
56
+
For example:
57
+
58
+
```ts
59
+
export class CustomStrategy extends ConnectedPositioningStrategy implements ITooltipPositionStrategy {
60
+
constructor(settings?: PositionSettings) {
61
+
super(settings);
62
+
}
63
+
64
+
public positionArrow(arrow: HTMLElement, arrowFit: ArrowFit): void {
<span#tooltipRef="tooltip"igxTooltip>Hello there, I am a tooltip!</span>
87
+
```
88
+
89
+
## 20.0.0
90
+
91
+
### General
92
+
- **Angular 20 Compatibility** - Ignite UI for Angular now plays nice with Angular 20! Upgrade your apps and enjoy the latest features.
93
+
- `IgxActionStrip`
94
+
- **Behavioral Changes** - When using the Action Strip standalone, outside of Grid, scenarios the component is no longer initially visible and the `hidden` property now defaults to `true`.
95
+
- `IgxChip`
96
+
- **Behavioral Change** The `variant` is now strictly typed with the union of supported options and no longer accepts invalid values for the default state, provide no value (nullish) instead is needed.
- Added a new `igxGridEmpty` template directive that allows assigning the `emptyGridTemplate` declaratively, without the need to get and assign reference, like other grid templates like:
101
+
```html
102
+
<igx-grid>
103
+
<ng-templateigxGridEmpty>
104
+
<!-- content to show when the grid is empty -->
105
+
</ng-template>
106
+
</igx-grid>
107
+
```
108
+
- Added a new `igxGridLoading` template directive that allows assigning the `loadingGridTemplate` declaratively, without the need to get and assign reference, like other grid templates like:
0 commit comments