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_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md