Skip to content

Commit

Permalink
add individual examples for data-table icon and header scanarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Dottenpixel committed Oct 6, 2017
1 parent 96f775f commit 33bd050
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions ui/components/data-tables/advanced/example.jsx
Expand Up @@ -261,15 +261,48 @@ export let states = [


export let examples = [ export let examples = [
{ {
id: 'header-and-cell-icon', id: 'header-icon-menu-button',
label: 'Header and Cell Icon', label: 'Header Icon and Menu Button',
element: ( element: (
<Table> <Table>
<Thead <Thead
actionableMode
columns={columns} columns={columns}
columnsWithEinstein={['Confidence']} columnsWithEinstein={['Confidence']}
hasMenus hasMenus
/> />
<tbody>
{_.times(rows.length, i => (
<AdvancedDataTableTr key={i} index={i + 1} {...rows[i]} />
))}
</tbody>
</Table>
)
},
{
id: 'header-menu-button',
label: 'Header Menu Button',
element: (
<Table>
<Thead actionableMode columns={columns} hasMenus />
<tbody>
{_.times(rows.length, i => (
<AdvancedDataTableTr key={i} index={i + 1} {...rows[i]} />
))}
</tbody>
</Table>
)
},
{
id: 'cell-icon',
label: 'Cell Icon',
element: (
<Table>
<Thead
actionableMode
className="slds-has-button-menu"
columns={columns}
/>
<tbody> <tbody>
{_.times(rows.length, i => ( {_.times(rows.length, i => (
<AdvancedDataTableTr key={i} index={i + 1} {...rows[i]} hasScores /> <AdvancedDataTableTr key={i} index={i + 1} {...rows[i]} hasScores />
Expand Down

0 comments on commit 33bd050

Please sign in to comment.