diff --git a/src/components/Datatable/Datatable.tsx b/src/components/Datatable/Datatable.tsx index 25725f91b..67434afe3 100644 --- a/src/components/Datatable/Datatable.tsx +++ b/src/components/Datatable/Datatable.tsx @@ -197,6 +197,7 @@ Datatable.propTypes = { controlsConfig: PropTypes.exact({ onControlToggle: PropTypes.func, onCancelLoading: PropTypes.func, + onColumnVisibilityChange: PropTypes.func, hasSearch: PropTypes.bool, searchConfig: PropTypes.exact({ placeholder: PropTypes.string, diff --git a/src/components/Datatable/mocks/controls.ts b/src/components/Datatable/mocks/controls.ts index 1f3877bad..e12c115fa 100644 --- a/src/components/Datatable/mocks/controls.ts +++ b/src/components/Datatable/mocks/controls.ts @@ -15,4 +15,5 @@ export const controlsConfig = { onSearch: action('onSearch'), onClear: action('onClear'), }, + onColumnVisibilityChange: action('columnVisibilityChange'), };