diff --git a/src/DataTable/README.md b/src/DataTable/README.md index 0028b2ad47..2f417d9884 100644 --- a/src/DataTable/README.md +++ b/src/DataTable/README.md @@ -53,97 +53,98 @@ or a filter component can be defined on the column. See - - + Header: 'Coat Color', + accessor: 'color', + Filter: CheckboxFilter, + filter: 'includesValue', + filterChoices: Object.values(reducedChoices), + }, + ]} + > + + + + + + ); +} ``` ## Backend filtering and sorting @@ -360,6 +361,7 @@ See ``dataViewToggleOptions`` props documentation for all supported props. famous_for: 'modeling', }, ], []) + return ( @@ -473,18 +470,13 @@ See ``dataViewToggleOptions`` props documentation for all supported props. Filter: CheckboxFilter, filter: 'includesValue', filterChoices: [{ - name: 'russian white', - number: 1, - value: 'russian white', - }, - { name: 'orange tabby', - number: 2, + number: 1, value: 'orange tabby', }, { name: 'brown tabby', - number: 3, + number: 1, value: 'brown tabby', }, { @@ -1280,18 +1272,13 @@ For a more desktop friendly view, you can move filters into a sidebar by providi Filter: CheckboxFilter, filter: 'includesValue', filterChoices: [{ - name: 'russian white', - number: 1, - value: 'russian white', - }, - { name: 'orange tabby', number: 2, value: 'orange tabby', }, { name: 'brown tabby', - number: 3, + number: 2, value: 'brown tabby', }, { @@ -1668,3 +1655,4 @@ After selecting the maximum possible number of rows, you can display an error me ); } +```