Files
hedena_gold/apps/admin-panel/src/views/notify/notifyTbl.ts
T

16 lines
618 B
TypeScript
Raw Normal View History

2026-10-15 17:19:10 +03:30
// Ported from legacy henza_admin/src/views/notify/notifyTbl.js
import XTbl, { Xtc } from '../../components/x-table/model';
export function buildNotifyModel(): XTbl {
const tbl = new XTbl('admin/misc/notify/list', 'لیست نوتیفیکیشن های دریافتی');
tbl.add(new Xtc('id', 'شماره'));
tbl.add(new Xtc('title', 'عنوان'));
// legacy column key is 'note' but the payload carries the body as `text`
tbl.add(new Xtc('text', 'متن').noSort());
tbl.add(new Xtc('opt', 'عملیات').noSort().renderSlot('opt'));
tbl.noFilters();
return tbl;
}
export default buildNotifyModel;