src/interfaces/IParams.ts
Properties |
|
api |
api:
|
Type : string
|
Defined in src/interfaces/IParams.ts:14
|
ycs restful api endpoint |
cols |
cols:
|
Type : IParamsCol[]
|
Defined in src/interfaces/IParams.ts:34
|
Columns |
customButtons |
customButtons:
|
Type : IParamsCustomButton[]
|
Optional |
Defined in src/interfaces/IParams.ts:84
|
Custom buttons in list |
dt |
dt:
|
Type : DataTable
|
Optional |
Defined in src/interfaces/IParams.ts:79
|
DataTable |
editorButtons |
editorButtons:
|
Type : IParamsEditorButton[]
|
Optional |
Defined in src/interfaces/IParams.ts:89
|
Custom buttons while editing |
formdata |
formdata:
|
Type : boolean
|
Optional |
Defined in src/interfaces/IParams.ts:104
|
Whether post data as formdata. Default is json. |
globalFilters |
globalFilters:
|
Type : any
|
Optional |
Defined in src/interfaces/IParams.ts:94
|
Global filters for query |
globalOptions |
globalOptions:
|
Type : any
|
Optional |
Defined in src/interfaces/IParams.ts:99
|
Global options for query |
hideAdd |
hideAdd:
|
Type : boolean
|
Optional |
Defined in src/interfaces/IParams.ts:49
|
Hide button add |
hideCancel |
hideCancel:
|
Type : boolean
|
Optional |
Defined in src/interfaces/IParams.ts:69
|
Hide button cancel |
hideCount |
hideCount:
|
Type : boolean
|
Optional |
Defined in src/interfaces/IParams.ts:54
|
Hide count |
hideDelete |
hideDelete:
|
Type : boolean
|
Optional |
Defined in src/interfaces/IParams.ts:59
|
Hide button delete |
hideExport |
hideExport:
|
Type : boolean
|
Optional |
Defined in src/interfaces/IParams.ts:74
|
Hide button export cvs |
hideSave |
hideSave:
|
Type : boolean
|
Optional |
Defined in src/interfaces/IParams.ts:64
|
Hide button save |
onShow |
onShow:
|
Type : function
|
Optional |
Defined in src/interfaces/IParams.ts:44
|
Event on modal show |
preEdit |
preEdit:
|
Type : function
|
Optional |
Defined in src/interfaces/IParams.ts:114
|
Before edit a row |
preSave |
preSave:
|
Type : function
|
Optional |
Defined in src/interfaces/IParams.ts:109
|
Before save a row |
renderer |
renderer:
|
Type : function
|
Optional |
Defined in src/interfaces/IParams.ts:119
|
Render paginated data after query |
rows |
rows:
|
Type : number
|
Optional |
Defined in src/interfaces/IParams.ts:39
|
Number of rows a page |
title |
title:
|
Type : literal type
|
Defined in src/interfaces/IParams.ts:19
|
Titles |
import { DataTable } from 'primeng/primeng';
import { RestAdminComponent } from '../component';
import {
IPaginateData,
IParamsCol,
IParamsCustomButton,
IParamsEditorButton,
} from './';
export interface IParams {
/**
* ycs restful api endpoint
*/
api: string;
/**
* Titles
*/
title: {
/**
* Title in list
*/
list: string;
/**
* Title while editing
*/
edit: string;
};
/**
* Columns
*/
cols: IParamsCol[];
/**
* Number of rows a page
*/
rows?: number;
/**
* Event on modal show
*/
onShow?: (self: RestAdminComponent) => void;
/**
* Hide button add
*/
hideAdd?: boolean;
/**
* Hide count
*/
hideCount?: boolean;
/**
* Hide button delete
*/
hideDelete?: boolean;
/**
* Hide button save
*/
hideSave?: boolean;
/**
* Hide button cancel
*/
hideCancel?: boolean;
/**
* Hide button export cvs
*/
hideExport?: boolean;
/**
* DataTable
*/
dt?: DataTable;
/**
* Custom buttons in list
*/
customButtons?: IParamsCustomButton[];
/**
* Custom buttons while editing
*/
editorButtons?: IParamsEditorButton[];
/**
* Global filters for query
*/
globalFilters?: any;
/**
* Global options for query
*/
globalOptions?: any;
/**
* Whether post data as formdata. Default is json.
*/
formdata?: boolean;
/**
* Before save a row
*/
preSave?: (params: any) => void;
/**
* Before edit a row
*/
preEdit?: (self: RestAdminComponent) => void;
/**
* Render paginated data after query
*/
renderer?: (data: IPaginateData) => IPaginateData;
}