Skip to content

Commit

Permalink
Update panel options
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-vl committed Nov 21, 2024
1 parent 6c02bc9 commit 822c3b3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export const plugin = new PanelPlugin<PanelOptions>(TablePanel)
description: 'Allow to download table data.',
defaultValue: false,
})
.addBooleanSwitch({
path: 'tabsSorting',
name: 'Tabs Sorting',
description: 'Show selected tab first',
showIf: (config) => config.tables?.length > 1,
})
.addCustomEditor({
id: 'tables',
path: 'tables',
Expand All @@ -27,13 +33,6 @@ export const plugin = new PanelPlugin<PanelOptions>(TablePanel)
defaultValue: [],
aliasIds: ['nestedObjects'],
})
.addBooleanSwitch({
path: 'tabsSorting',
name: 'Tabs Sorting',
description: 'Show selected tab at the first',
showIf: (config) => config.tables?.length > 1,
category: ['Layout'],
})
.addCustomEditor({
id: 'editableData',
path: 'tables',
Expand Down

0 comments on commit 822c3b3

Please sign in to comment.