Skip to content

Commit b059c25

Browse files
authored
Merge pull request #23 from SmartBase-SK/develop
Develop
2 parents 794febe + efaaf8f commit b059c25

File tree

3 files changed

+320
-6
lines changed

3 files changed

+320
-6
lines changed

docs/table/list_actions.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ class ListActionModelSBAdmin(SBAdmin):
7979
title=_("Action without icon"),
8080
view=self,
8181
action_id="export_action",
82+
open_in_new_tab=True,
8283
),
8384
SBAdminCustomAction(
8485
title=_("Action with icon"),
8586
icon="Calendar",
8687
view=self,
8788
action_id="export_action",
89+
open_in_new_tab=True,
8890
),
8991
],
9092
),
@@ -103,4 +105,5 @@ Each action is mapped to a method in your admin (via `action_id`).
103105

104106
- A single button action
105107
- 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)

docusaurus.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ const config = {
1313
title: 'Django SmartBase Admin Documentation',
1414
tagline: '',
1515
favicon: 'img/favicon.ico',
16-
16+
headTags: [
17+
{
18+
tagName: 'meta',
19+
attributes: {
20+
name: 'algolia-site-verification',
21+
content: '9E63A27732003986',
22+
},
23+
},
24+
],
1725
// Set the production url of your site here
1826
url: 'https://smartbase-sk.github.io',
1927
// Set the /<baseUrl>/ pathname under which your site is served

0 commit comments

Comments
 (0)