Skip to content

Data Configuration

Kushal edited this page Nov 27, 2020 · 1 revision

<-- Optional Define interface for your dataset

export interface GridItemsType {
    id: number;
    name: string;
    age: number;
    designation: string;
    salary: number;
    dateofjoining: string;
};

-->

Create DataSet

var dummyData : GridItemsType[] = []
for(var i = 1; i <= 10; i++){
    dummyData.push({
        id: i,
        name: 'Name'+i,
        age: GetRandomInt(20,40),
        designation: 'Designation' + i,
        salary: GetRandomInt(35000, 75000),
        dateofjoining: '2010-10-10T14:57:10'
    });
}
Clone this wiki locally