@velis/dynamicforms
Version:
Data entry boilerplate components and a RESTful API consumer
53 lines • 1.59 kB
TypeScript
import { DfForm } from '../form/namespace';
export declare namespace DfTable {
type CSSAlignment = 'left' | 'right' | 'center';
type InitialDataCSSAlignment = CSSAlignment | 'decimal';
interface VisibilityJSON {
form: number;
table: number;
}
interface ColumnJSON {
name: string;
label: string;
alignment: InitialDataCSSAlignment;
ordering: string;
render_params: DfForm.RenderParamsJSON;
visibility: VisibilityJSON;
table_classes?: string;
}
interface ResponsiveLayoutInterface {
}
interface RowControlDataInterface {
row_css_class?: string;
row_css_style?: string;
actions?: any[];
}
interface RowControlStructure {
measuredHeight: number | null;
isShowing: boolean;
componentName: string;
CSSClass: string;
CSSStyle: string;
}
interface RowDataInterface {
[key: string]: any;
df_control_data?: RowControlDataInterface;
}
type RowsData = {
results: RowDataInterface[];
next: string;
} | RowDataInterface[];
interface ResponsiveTableLayoutDefinition {
columns: (string | string[])[];
autoAddNonListedColumns: boolean;
}
interface ResponsiveTableLayoutsDefinition {
auto_generate_single_row_layout: boolean;
auto_generate_single_column_layout: boolean;
layouts: {
columns: string[];
auto_add_non_listed_columns: boolean;
}[];
}
}
//# sourceMappingURL=namespace.d.ts.map