diff --git a/entries/table-columntoggle.xml b/entries/table-columntoggle.xml index c533e48c..8f2ca3aa 100644 --- a/entries/table-columntoggle.xml +++ b/entries/table-columntoggle.xml @@ -12,7 +12,7 @@
The column chooser mode requires a table
element with two attributes: data-role="table"
and data-mode="columntoggle"
. An ID
attribute is also required on the table to associate it with the column chooser popup menu.
The column chooser mode requires a table
element with two attributes: data-role="table"
and data-mode="columntoggle"
. An id
attribute is also required on the table to associate it with the column chooser popup menu and the button that launches the popup. The table's id
attribute will serve as the prefix for the button's attribute (which will append -button
to the previx) nad the popup's attribute (which will append -popup
to the prefix).
@@ -144,7 +144,7 @@
It's fairly common to need to logically group multiple columns together under a heading group for financial or scientific data. The framework can support the most simple version of this by allowing for two rows of table headers (TH
), with the first row containing simple colspan
attributes to group the columns below. In this configuration, the framework will parse the first row only for the priority and expose these heading groups as the options in the column chooser popup. In this configuration, the second heading will not be exposed as columns that can be hidden or shown independently of the groupings in the chooser.
- The columntoggle table places an anchor before the table that invokes a popup listing the columns available for showing/hiding. The ID of the popup and thus the href of the anchor should be the ID of the table suffixed by the string -popup
. You may separately pre-enhance the popup widget, or you may allow autoinitialization to enhance it.
+ The columntoggle table places an anchor before the table that invokes a popup listing the columns available for showing/hiding. The ID of the popup and thus the href of the anchor should be the ID of the table suffixed by the string -popup
. The anchor must also have an id
attribute which is identical to that of the table, but postfixed with -button
. This will allow the table to correctly enable/disable when you modify its disabled
option. You may separately pre-enhance the popup widget, or you may allow autoinitialization to enhance it.
The popup widget must contain a single controlgroup widget which in turn contains all the checkboxes representing the columns of the table.
In the example below the parameter data-column-btn-theme="b"
is added to the table explicitly to indicate that the theme applied to the "Columns..." button is not the default (null
).