-
Notifications
You must be signed in to change notification settings - Fork 1k
<Data /> component, and friends #6343
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
Conversation
Cool idea |
test('renders', () => { | ||
const { container } = render( | ||
<Grommet> | ||
<Data data={data}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but above you have gap='small'
soo not sure what it could be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored Toolbar and the story.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good I can take a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixed merge conflicts from feedback files..
Besides the story Jessica pointed out..Also thank you for cleaning up the reset
button. The file structure is a lot better as well now that they are all clumped together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This is an exploration into adding a
Data
component.Simple
At it's simplest, one could do something like:
Preview
Variations
data driven containers
Substitute
List
orCards
forDataTable
, or include them all, it works.Cards
is new here as well. See the stories under "Data" for examples.custom layout
New components include
DataSearch
,DataFilters
,DataFilter
, andDataSummary
. Using these within aData
allows the caller to customize the layout or various details. See the "Data/Inline" story for an example of a custom layoutwhere to put filters
DataFilters
can be shown inline, as thedropContents
of aDropButton
, or as the content of aLayer
toggled by aButton
. See the stories under "DataFilters" for examples of each.Notes
This is just an initial draft to foster discussion.