Sha256: 78fe647c7a53674039febda6f79e16310db1f3e61c2d8e53ad787e8d86bf3b72

Contents?: true

Size: 1.19 KB

Versions: 1102

Compression:

Stored size: 1.19 KB

Contents

As a default, the kit assumes that the initial dataset is complete, and it renders all expansion buttons/controls based on that data; if no children are present, no expansion controls are rendered. If, however, you want to change the initial dataset to omit some or all of its children (to improve load times of a complex dataset, perhaps), and you implement a querying logic that loads children only when its parent is expanded, then you must use the `inlineRowLoading` prop to ensure your expansion controls are rendered even though your child data is not yet loaded. You must also pass an empty `children` array to any node that will have children to ensure its parent maintains its ability to expand. If this prop is called AND your data contains empty `children` arrays, the kit will render expansion controls on any row with empty children, and then add an inline loading state within the expanded subrow until those child row(s) are returned to the page [by your query logic].

In this code example, 2021 has an empty children array. Toggle it open to see the inline loading state. Once the correct data loads, this state will be replaced with the correct data rows. 

This prop is set to `false` by default. 

Version data entries

1,102 entries across 1,102 versions & 2 rubygems

Version Path
playbook_ui-13.29.0.pre.alpha.testingcollapsibleissue3052 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.29.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.28.0.pre.alpha.PBNTR297gradientoverlay3029 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.28.0.pre.alpha.PBNTR297gradientoverlay3029 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.28.0.pre.alpha.pbntr312tableheaderflexremoval3019 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.28.0.pre.alpha.pbntr312tableheaderflexremoval3019 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.28.0.pre.alpha.dialogturbostreameventlistener3017 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.28.0.pre.alpha.dialogturbostreameventlistener3017 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.28.0.pre.alpha.PLAY1338alpha3001 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.28.0.pre.alpha.PLAY1338alpha3001 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2987 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2987 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2984 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2984 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.27.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.27.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md