Hi
I am passing below data to Child Component but action buttons are not getting displayed when Column Title = 'options'
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
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dharmeshwaran SPosted Jun 27, 2024, 2:02 PM
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.HTML Template
Revise the template to properly integrate the action buttons within the table structure:
Ensure your
_common.getActionButtonfunction returns the correct structure. Here is an example of what this function might look like: