61 lines
1019 B
TypeScript
61 lines
1019 B
TypeScript
|
export interface BookFilterElement {
|
||
|
field: string,
|
||
|
flex: number,
|
||
|
sortable: boolean
|
||
|
}
|
||
|
|
||
|
export const bookDisplayDesktopElements: BookFilterElement[] = [
|
||
|
{
|
||
|
field: 'title',
|
||
|
flex: 10,
|
||
|
sortable: true
|
||
|
},
|
||
|
{
|
||
|
field: 'author',
|
||
|
flex: 6,
|
||
|
sortable: true
|
||
|
},
|
||
|
{
|
||
|
field: 'publisher',
|
||
|
flex: 4,
|
||
|
sortable: true
|
||
|
},
|
||
|
{
|
||
|
field: 'extension',
|
||
|
flex: 2,
|
||
|
sortable: true
|
||
|
},
|
||
|
{
|
||
|
field: 'filesize',
|
||
|
flex: 3,
|
||
|
sortable: false
|
||
|
},
|
||
|
{
|
||
|
field: 'language',
|
||
|
flex: 2,
|
||
|
sortable: true
|
||
|
},
|
||
|
{
|
||
|
field: 'year',
|
||
|
flex: 2,
|
||
|
sortable: true
|
||
|
},
|
||
|
{
|
||
|
field: 'pages',
|
||
|
flex: 2,
|
||
|
sortable: false
|
||
|
}
|
||
|
]
|
||
|
|
||
|
export const bookDisplayMobileElements: BookFilterElement[] = [
|
||
|
{
|
||
|
field: 'title',
|
||
|
flex: 0,
|
||
|
sortable: true
|
||
|
},
|
||
|
{
|
||
|
field: 'author',
|
||
|
flex: 0,
|
||
|
sortable: true
|
||
|
}
|
||
|
]
|