Sha256: fc10deaa55f55a96463797a065a16ca3ee3e706d3453d91af3b263b9b18bc04a
Contents?: true
Size: 1009 Bytes
Versions: 77
Compression:
Stored size: 1009 Bytes
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
Version data entries
77 entries across 77 versions & 2 rubygems