Add filter by name to Playlist list
This commit is contained in:
parent
bf1dc33782
commit
a734a1aaa3
1 changed files with 9 additions and 1 deletions
|
|
@ -5,11 +5,19 @@ import {
|
|||
BooleanField,
|
||||
NumberField,
|
||||
DateField,
|
||||
Filter,
|
||||
SearchInput,
|
||||
} from 'react-admin'
|
||||
import { DurationField, List } from '../common'
|
||||
|
||||
const PlaylistFilter = (props) => (
|
||||
<Filter {...props}>
|
||||
<SearchInput source="name" alwaysOn />
|
||||
</Filter>
|
||||
)
|
||||
|
||||
const PlaylistList = (props) => (
|
||||
<List {...props} exporter={false}>
|
||||
<List {...props} exporter={false} filters={<PlaylistFilter />}>
|
||||
<Datagrid rowClick="show">
|
||||
<TextField source="name" />
|
||||
<TextField source="owner" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue