UNPKG

@true-directive/base

Version:

The set of base classes for the TrueDirective Grid

31 lines (30 loc) 1.4 kB
/** * Copyright (c) 2018-2019 Aleksey Melnikov, True Directive Company. * @link https://truedirective.com/ * @license MIT */ /** * Действия, доступные через контекстные меню (данные, заголовки) */ var MenuAction = /** @class */ (function () { function MenuAction(name, group, icon) { if (icon === void 0) { icon = ''; } this.name = name; this.group = group; this.icon = icon; this.disabled = false; } MenuAction.CUSTOM = new MenuAction('Custom Action', 'Custom'); MenuAction.COPY = new MenuAction('Copy', 'copy'); MenuAction.COPY_WITH_HEADERS = new MenuAction('Copy with headers', 'copy'); MenuAction.EXPORT_CSV = new MenuAction('Export to CSV', 'export'); MenuAction.EXPORT_XLS = new MenuAction('Export to XLSX', 'export'); MenuAction.FILTER = new MenuAction('Filter', 'column'); MenuAction.GROUP_BY_COLUMN = new MenuAction('Group by this column', 'column'); MenuAction.HIDE = new MenuAction('Hide this column', 'column'); MenuAction.COLUMN_LIST = new MenuAction('Column list', 'column'); MenuAction.SORT_ASC = new MenuAction('Sort Ascending', 'sort', 'true-icon-sort-alt-up'); MenuAction.SORT_DESC = new MenuAction('Sort Descending', 'sort', 'true-icon-sort-alt-down'); return MenuAction; }()); export { MenuAction };