Skip to content

Commit

Permalink
docs(storybook-table): controls for overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
theJohnnyMe committed Oct 25, 2024
1 parent a9e1564 commit 2c12663
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,23 @@ export default {
control: {
type: 'radio',
},

options: ['auto', 'hidden'],
autoCollapse: {
name: 'Auto Collapse',
description: 'Automatically collapses other rows when one is expanded.',
control: {
type: 'boolean',
},
table: {
defaultValue: { summary: false },
},
options: ['auto', 'hidden', 'visible'],
table: {
defaultValue: { summary: 'auto' },
},
},
autoCollapse: {
name: 'Auto Collapse',
description: 'Automatically collapses other rows when one is expanded.',
control: {
type: 'boolean',
},
table: {
defaultValue: { summary: false },
},
},
},

args: {
modeVariant: 'Inherit from parent',
compactDesign: false,
Expand All @@ -155,7 +158,7 @@ export default {
column2Width: '',
column3Width: '',
column4Width: '',
overflow: 'scroll',
overflow: 'auto',
autoCollapse: false,
},
};
Expand Down

0 comments on commit 2c12663

Please sign in to comment.