| 99 | } |
| 100 | |
| 101 | export class Column implements IBaseColumn { |
| 102 | clearable?: boolean | boolean[] | 'first' | 'last' | undefined; |
| 103 | deletable?: boolean | boolean[] | 'first' | 'last' | undefined; |
| 104 | editable = false; |
| 105 | filter_options!: IFilterOptions; |
| 106 | hideable?: boolean | boolean[] | 'first' | 'last' | undefined; |
| 107 | renamable?: boolean | boolean[] | 'first' | 'last' | undefined; |
| 108 | selectable?: boolean | boolean[] | 'first' | 'last' | undefined; |
| 109 | sort_as_null: SortAsNull = []; |
| 110 | id!: string; |
| 111 | name: string | string[] = []; |
| 112 | |
| 113 | constructor(initialValues: any) { |
| 114 | if (Object.keys(initialValues).includes('name')) |
| 115 | this.name = initialValues.name; |
| 116 | if (Object.keys(initialValues).includes('id')) |
| 117 | this.id = initialValues.id; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | export type ColumnId = string; |
| 122 | export type Columns = IColumn[]; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…