You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I try to use column.getToggleHiddenProps() together with the Checkbox component from Shopify Polaris, but unfortunately I get the above error.
import { Filters, ChoiceList, Checkbox, TextField } from '@shopify/polaris';
...
<Checkbox label={column.Header} {...column.getToggleHiddenProps()}/>
I also tried this:
<Checkbox label={column.Header} checked={column.isVisible} onChange={(checked) => column.toggleHidden(!checked)}/>
I get no error then, but nothing happens onChange. The column will be not hidden and isVisible remains the same.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions