1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-24 15:27:43 +01:00

chore: Aggiunti alias per i tipi delle colonne/righe/sezioni

This commit is contained in:
Maicol Battistini 2021-12-24 11:56:45 +01:00
parent 9a466971ca
commit 0b86133bab
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A

View File

@ -80,14 +80,18 @@ export type SectionT = FieldT[] | {
fields: FieldT[] | { [string]: FieldT }
};
export type ColumnsT = { [string]: [string] | ColumnT } | ColumnT[];
export type RowsT = Collection<Model>;
export type SectionsT = { [string]: SectionT } | SectionT[];
/**
* @abstract
*/
export default class RecordsPage extends Page {
columns: { [string]: [string] | ColumnT } | ColumnT[];
rows: Collection<Model> = collect({});
columns: ColumnsT;
rows: RowsT = collect({});
sections: { [string]: SectionT } | SectionT[];
sections: SectionsT;
dialogs: Children[];