question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Addon-docs: Expand/collapse prop table entries by their 'parent'

See original GitHub issue

the 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: screenshot805

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:30 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
domyencommented, Dec 9, 2019

what about adding the number of props to the section header as in the initial screenshot?

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.

1reaction
atanasstercommented, Nov 15, 2019

Looks great @domyen and the indentation is very user friendly , just a reminder to possibly default expand the first interface.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found