Hi
I am passing below data to Child Component but action buttons are not getting displayed when Column Title = 'options'
TypeScript
this.columns = [
{ title: "Type", name: "name" , visible: true },
{ title: "Description", name: "description" , visible: true },
{
title: "Action",
name: 'actions',
visible: true,
buttons: this._common.getActionButton(this.btnEditClick,this.btnDeleteClick,Function())
}
]
*********************
{{ item.name }}
{{ element[item.name] }}Thanks

Dharmeshwaran SRank #819 · 2.8K reputationPosted Jun 27, 2024, 10:02 AM EDT
To display action buttons in your table, you need to adjust both the template and the logic that handles the rendering of these buttons.
TypeScript Code
Ensure that
getActionButtonis returning an array of action button configurations correctly. Also, remove the unnecessaryFunction()in thebuttonsassignment.this.columns = [ { title: "Type", name: "name", visible: true }, { title: "Description", name: "description", visible: true }, { title: "Action", name: "actions", visible: true, buttons: this._common.getActionButton(this.btnEditClick, this.btnDeleteClick) } ];HTML Template
Revise the template to properly integrate the action buttons within the table structure:
{{ column.title }} {{ element[column.name] }} {{ button.icon }} c.name)"> c.name)">Ensure your
_common.getActionButtonfunction returns the correct structure. Here is an example of what this function might look like: