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: packages/main/src/TableRowActionNavigation.ts
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ class TableRowActionNavigation extends TableRowActionBase {
31
31
* @deprecated As of version 2.20.0, the navigation icon is deprecated.
32
32
* For better accessibility, the interactive mode which renders a button, must be used instead. To handle the action, attach a listener to the `click` event.
33
33
* If the navigation should be triggered when a row is pressed, set the row's `interactive` property and use the `row-click` event of the `ui5-table`.
34
-
* This property will be removed in a future release.
34
+
* This property will be removed in the next major version.
35
35
*/
36
36
@property({type: Boolean})
37
37
interactive=false;
@@ -43,6 +43,19 @@ class TableRowActionNavigation extends TableRowActionBase {
43
43
returntrue;
44
44
}
45
45
46
+
onEnterDOM(): void{
47
+
super.onEnterDOM();
48
+
if(!this.interactive){
49
+
// eslint-disable-next-line no-console
50
+
console.warn(
51
+
"[ui5-table-row-action-navigation] The non-interactive (icon) rendering mode is deprecated and will be removed in the next major version. "
52
+
+"Set the `interactive` property to render the navigation action as an accessible button and handle the action via the `click` event. "
53
+
+"If the navigation should be triggered when a row is pressed, set the row's `interactive` property and use the `row-click` event of `ui5-table`. "
54
+
+"Button rendering will become the only supported behavior, and the `interactive` property will then be removed.",
0 commit comments