Addon-docs: Expand/collapse prop table entries by their 'parent'
See original GitHub issuethe typescript prop tables can often times get very long with components that are accepting props from many interfaces. Example:
export type IDropInputProps = IDropInputOwnProps & TextInputProps & JSX.IntrinsicElements['input'];
the prop table in this case is really long: https://atanasster.github.io/grommet-controls/?path=/docs/controls-input-dropinput--main
The example prop table json file: https://github.com/atanasster/grommet-controls/blob/master/src/components/DropInput/doc/DropInput.json
A screenshot how the parent interface name can be collapsed. By default suggestion is to have expanded only the first interface name:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:30 (27 by maintainers)
Top Results From Across the Web
Collapse · Bootstrap
To add accordion-like group management to a collapsible area, add the data attribute data-parent="#selector" . Refer to the demo to see this in...
Read more >Class Group | Apps Script
The collapsed state of a group refers to whether the group should remain collapsed or expanded after a parent group has been expanded....
Read more >1 - Watson IoT / Table - With row nesting ⋅ Storybook
The children supports the same props as the objects in the Data prop ... The StatefulTable will automatically expand and collapse a row...
Read more >JavaScript Data Grid Row parent-child
Reflect the parent-child relationship of your data, using the NestedRows plugin's interactive UI elements such as expand and collapse buttons or ...
Read more >Add and edit tables - Computer - Google Docs Editors Help
Organize information in a document or presentation with a table. You can add and delete tables, and adjust the size and style of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That makes sense to me! We do that in the animated gif in the column beside the name (“1 remaining unreviewed”) – could do the same thing here.
Looks great @domyen and the indentation is very user friendly , just a reminder to possibly default expand the first interface.