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-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui_docs-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md