Files
mixtape/zero.Backoffice.UI/app/modules/languages/schemas/list.ts
T

17 lines
398 B
TypeScript
Raw Normal View History

2020-10-19 14:48:21 +02:00
2021-12-15 21:52:00 +01:00
import List from '../../../schemas/list/list';
import api from '../api';
2020-10-19 14:48:21 +02:00
const list = new List('languages');
const prefix = '@language.fields.';
list.templateLabel = x => prefix + x;
2021-12-15 21:52:00 +01:00
list.link = 'languages-edit';
2020-10-19 14:48:21 +02:00
2021-12-15 21:52:00 +01:00
list.onFetch(filter => api.getByQuery(filter));
2020-10-19 14:48:21 +02:00
list.column('name').name();
list.column('code').text();
list.column('isDefault', { width: 200 }).boolean();
export default list;