CategoryListProps
Defined in: packages/react/src/controls.tsx:166
Props of CategoryList. useViews’s listProps(group) supplies most of them.
Properties
Section titled “Properties”className?
Section titled “className?”
optionalclassName?:string
Defined in: packages/react/src/controls.tsx:174
Extra class on the outer element.
group:
LegendGroup
Defined in: packages/react/src/controls.tsx:168
One dimension’s legend, from layout.legends.
linkLabel?
Section titled “linkLabel?”
optionallinkLabel?:string
Defined in: packages/react/src/controls.tsx:179
Text for each category’s link, when it has an href. Defaults to “Explore”.
onSelect?
Section titled “onSelect?”
optionalonSelect?: (selection) =>void
Defined in: packages/react/src/controls.tsx:172
Called with a category of this group, or null to clear; makes each entry a toggle.
Parameters
Section titled “Parameters”selection
Section titled “selection”Selection | null
Returns
Section titled “Returns”void
selected?
Section titled “selected?”
optionalselected?:Selection|null
Defined in: packages/react/src/controls.tsx:170
The current selection, from useViews.
optionalunit?:string
Defined in: packages/react/src/controls.tsx:177
What one item is, e.g. “sets”. Defaults to “items”.