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: docs/table/list_actions.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,12 +79,14 @@ class ListActionModelSBAdmin(SBAdmin):
79
79
title=_("Action without icon"),
80
80
view=self,
81
81
action_id="export_action",
82
+
open_in_new_tab=True,
82
83
),
83
84
SBAdminCustomAction(
84
85
title=_("Action with icon"),
85
86
icon="Calendar",
86
87
view=self,
87
88
action_id="export_action",
89
+
open_in_new_tab=True,
88
90
),
89
91
],
90
92
),
@@ -103,4 +105,5 @@ Each action is mapped to a method in your admin (via `action_id`).
103
105
104
106
- A single button action
105
107
- A dropdown with multiple actions (via `sub_actions`)
106
-
- An optional icon ([🔗 Available icons](https://github.com/SmartBase-SK/django-smartbase-admin/tree/main/src/django_smartbase_admin/static/sb_admin/sprites/sb_admin)).
108
+
- An optional icon ([🔗 Available icons](https://github.com/SmartBase-SK/django-smartbase-admin/tree/main/src/django_smartbase_admin/static/sb_admin/sprites/sb_admin)).
109
+
- You can set to open an actions links in the new tab (via `open_in_new_tab = True` parameter)
0 commit comments