I am getting array in this way, check attached image.
Now I am trying to display edit icon as this below :
{
header: 'Edit',
field: 'id',
view: (value: string, obj: any) => { return `<i class='material-icons' style='cursor: pointer;font-size: 20px;margin-left: 10px;'
aria-hidden='false' aria-label='Example edit icon' userGuid=${obj}>edit</i>`; }
}
In this userGuid I want to pass index of array, like 0, 1 etc..
So in obj I am getting full array but I am not sure how can I access that index and pass it in userGuid.
Any help.
Can you try with
cellRenderer
property for rendering the edit button.