Sha256: f2b520c6fa28fb72ac59363f4e21d3d3b2b90655113aa210d730927048b61b81

Contents?: true

Size: 1.19 KB

Versions: 1407

Compression:

Stored size: 1.19 KB

Contents

The `table_header` subcomponent creates `<th>` elements and optionally accepts:

* `colspan` (number) for setting column span
* `sort_menu` accepts sort options as an array of `item` objects.
presence of `sort_menu` enables the sort link within the header
* `sort_dropdown` (boolean) optionally declares that (true) clicking a header's sort link opens a dropdown of sort options, or (false) each sort link click cycles through available sort_menu items in the order they are passed
  * passing a valid `colspan` will render sort options within a dropdown by default, without requiring `sort_dropdown` explicitly. Alternatively, the default sort dropdown can be prevented on headers with `colspan` by setting `sort_dropdown: false`, which reverts the column to sorting to multi-click default (each click of the sort link cycles through the available sort_menu items in the order they are passed)
* `id` (string) is required for headers that have a dropdown (for popover reference); otherwise they are optional

</br>
<div class="pb_pill_kit_warning"><div class="pb_title_kit_size_4 pb_pill_text">Disclaimer</div></div>

This example uses a custom sort method that may need to be modified or replaced within your project.

Version data entries

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

Version Path
playbook_ui_docs-14.12.0.pre.alpha.play1790darkaudittable5802 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.12.0.pre.alpha.play1790darkaudittable5802 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.12.0.pre.alpha.play1752updatecontenttag5801 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.12.0.pre.alpha.play1752updatecontenttag5801 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.13.0.pre.rc.6 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.13.0.pre.rc.6 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.13.0.pre.rc.5 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.13.0.pre.rc.5 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5781 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5781 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.13.0.pre.rc.4 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.13.0.pre.rc.4 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.12.0.pre.alpha.playrailsinputmaskissue5775 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5775 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui_docs-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751 app/pb_kits/playbook/pb_table/docs/_table_header.md
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751 app/pb_kits/playbook/pb_table/docs/_table_header.md