Skip to content

Add Tree Grid Component #2181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
159f67f
Add Basic Rending for Tree Grid
aswinshenoy Jul 17, 2019
595c3ed
Added Support for Nested Rows
aswinshenoy Jul 17, 2019
60339b4
Add Support for Selection
aswinshenoy Jul 18, 2019
367ff3b
Merge branch 'master' of https://github.com/salesforce/design-system-…
aswinshenoy Aug 5, 2019
5038e4a
Update TreeGrid Props to match DataTable
aswinshenoy Aug 9, 2019
16040a9
Add Support for Headless TreeGrid Variant
aswinshenoy Aug 9, 2019
789638e
Update Headless Example
aswinshenoy Aug 13, 2019
7b51c8d
Support for basic Selection in TreeGrid
aswinshenoy Aug 16, 2019
647ddd2
Support for basic Selection in TreeGrid
aswinshenoy Aug 16, 2019
07ee9f5
Change props to support normalized data for TreeGrid
aswinshenoy Aug 20, 2019
72f02af
Support for SelectAll, MoreActionsDropdown Support for Rows
aswinshenoy Aug 21, 2019
5aa8534
Merge branch 'master' of https://github.com/salesforce/design-system-…
aswinshenoy Aug 21, 2019
d0f48a4
Add support for selection
aswinshenoy Aug 23, 2019
db6dbcf
Add basic support for keyboard navigation
aswinshenoy Aug 25, 2019
515f34e
Add Component.json
aswinshenoy Sep 9, 2019
8fb89bc
Merge branch 'master' of https://github.com/salesforce/design-system-…
aswinshenoy Sep 9, 2019
f3f9b9c
Support for indeterminate state of checkbox for top-level rows
aswinshenoy Sep 12, 2019
a52fec1
Add more examples for TreeGrid
aswinshenoy Sep 12, 2019
8ad82e2
Add EventTrap for handling selection & expansion of rows in TreeGrid
aswinshenoy Sep 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ export TrialBarButton from './trial-bar/button';
export SLDSTrialBarButton from './trial-bar/button';
export TrialBarDropdown from './trial-bar/dropdown';
export SLDSTrialBarDropdown from './trial-bar/dropdown';
export SLDSTreeGrid from './tree-grid';
export TreeGrid from './tree-grid';
export UNSAFE_DirectionSettings from './utilities/UNSAFE_direction';
export UtilityIcon from './utilities/utility-icon';
export SLDSUtilityIcon from './utilities/utility-icon';
Expand Down
26 changes: 26 additions & 0 deletions components/tree-grid/__docs__/storybook-stories.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';

import { TREE_GRID } from '../../../utilities/constants';
import Default from '../__examples__/default';
import Headless from '../__examples__/headless';

storiesOf(TREE_GRID, module)
.addDecorator((getStory) => (
<div className="slds-p-around_medium">{getStory()}</div>
))
.add('Default', () => <Default action={action} />)
.add('Single Select', () => <Default action={action} selectRows="single" />)
.add('w/o Border', () => <Default action={action} isBorderless />)
.add('Single Select w/o Border', () => (
<Default action={action} selectRows="single" isBorderless />
))
.add('Headless Single Select w/ Border', () => (
<Headless action={action} selectRows="single" />
))
.add('Headless w/ Border', () => <Headless action={action} />)
.add('Headless Single Select w/o Border', () => (
<Headless action={action} selectRows="single" isBorderless />
))
.add('Headless w/o Border', () => <Headless action={action} isBorderless />);
Loading