这是我的 aggrid columndef
{
headerName: 'Type Of Pin',
field: 'pinType',
width: 160,
cellRenderer: this.typeOfPin,
suppressSorting: true
}
typeOfPin(params) {
console.log(params);
// const eDiv = document.createElement('div');
// const disableVal = true;
// eDiv.innerHTML =
return '<div><select placeholder="Select" class="form-control ag-form-control">' +
'<option></option>' +
'<option (click)="test()" selected>Number</option>' +
'<option onClick="test()" >Random</option>' +
'</select></div>';
}
Run Code Online (Sandbox Code Playgroud)
{
headerName: 'Type Of Pin',
field: 'pinType',
width: 160,
cellRenderer: this.typeOfPin,
suppressSorting: true
}
typeOfPin(params) {
console.log(params);
// const eDiv = document.createElement('div');
// const disableVal = true;
// eDiv.innerHTML …Run Code Online (Sandbox Code Playgroud)