Hi Ryan
Sereno,
While using column template, we pass the data of the grid row, the
details of the columns, and an index for further access. We haven't provided
specific TypeScript types for the data object passed into the column template.
You may need to define your own interface based on your understanding of the
data structure. By doing so, you can utilize it for type checking and
IntelliSense in your Vue component.
Please refer to the below sample and
code snippet for more information.
Code sample :
|
App,vue
interface RowDetails {
Address: string;
BirthDate: Date;
City: string;
Country: string;
EmailID: string;
EmployeeID: boolean;
EmployeeImage: string;
Extension: string;
FirstName: string;
HireDate: Date;
HomePhone: string;
LastName: string;
Notes: string;
Photo: object;
PhotoPath: string;
PostalCode: string;
Region: string;
ReportsTo: number;
Title: string;
TitleOfCourtesy: string;
}
interface ColumInterface {
column: ColumnModel;
}
interface ColumITemplate extends RowDetails, ColumInterface{
index: number;
}
methods: {
handleChange(data: ColumITemplate)
{
console.log('Checkbox changed:', data);
},
},
|
Sample : my_vue_sample.zip
Please get back to us, if you need further assistance.
Regards,
Johnson Soundararajan S
Attachment:
my_vue_sample_bc032b89.zip