OptionalaccessorHow to read this column off an element. Defaults to element.getData()[key], which
is what makes a FilterFacet usable as a column unchanged.
OptionalalignOptionalfilterableGive this column a filter control in its header, typed off its type — a
Min/Max pair for a numberRange, a dropdown of the values present for a select,
a substring box otherwise.
It narrows the rows; the canvas is left alone unless someone presses the dock's Apply to graph button (see TableOptions.filterGraph), so reading and filtering stay separate acts.
OptionalformatRender the cell. A string is inserted as text, an HTMLElement as markup.
Ignored by export, which always writes the raw value.
OptionalhiddenStart hidden (still listed in the column picker).
Filter identity, and the GraphFilters key setFilter / getFilters use.
OptionallabelHuman label for the form control, used verbatim (so it can be translated).
Defaults to a prettified key.
OptionalorderDisplay order in the panel.
OptionalsortableOptionalwidthColumn width — a pixel count, or any CSS length.
One column of the data dock.
Deliberately an extension of FilterFacet: a facet already says how to read a value off an element and what kind of value it is, which is exactly what a column needs. So declaring
UI.filter.facetsdescribes your data once and the filter panel and the table agree about it.Example