I’m working with the Table component in Neutrinos Alpha Studio, and I’ve successfully fetched and displayed data from an external API.
Now I want to add a button in each row that performs an operation based on a dynamic value, such as opening a link. I am getting dynamic data in table , Likewise how to get dynamic value in actions ?
4 Likes
Hey @Aseema , In the Trigger section of the table configuration, you’ll find your custom actions listed in the options. Since your action is “Image”, you can select the “On Image” trigger and add your custom code there.
To access the data for a specific row, use the params.triggerEvent
object. Here is a sample data structure of that object:
{"action":"Image",
"row":{...}
}
This object contains the mapped data for that row in JSON format, allowing you to dynamically open the relevant link using javascript or perform other actions.
8 Likes
Yes , it worked ! Thank you so much.
4 Likes