[TASK] improve style searchable table
This commit is contained in:
21
frontend/table.ts
Normal file
21
frontend/table.ts
Normal file
@ -0,0 +1,21 @@
|
||||
// @ts-ignore
|
||||
new JSTable('#basic', {
|
||||
perPage: 100,
|
||||
perPageSelect: [10,100],
|
||||
|
||||
// Customise the display text
|
||||
labels: {
|
||||
placeholder: 'Suchen (z.B. "Linz")',
|
||||
perPage: '{select} per Seite',
|
||||
noRows: 'Keine Einträge gefunden',
|
||||
info: 'Zeigt {start} bis {end} von {rows} Einträgen',
|
||||
loading: 'Laden...',
|
||||
infoFiltered: 'Zeigt {start} bis {end} von {rows} Einträgen (gefiltert aus {rowsTotal} Einträgen)'
|
||||
},
|
||||
|
||||
// Customise the layout
|
||||
layout: {
|
||||
top: '{search}{select}',
|
||||
bottom: '{info}{pager}'
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user