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
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,48 @@ export let states = [

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

0 comments on commit 33bd050

Please sign in to comment.