How do you add a custom action button to copy a specific column value for that row?

QuestionsHow do you add a custom action button to copy a specific column value for that row?
pcattani asked 3 years ago

I’m looking to create a custom Row Action button which will call a javascript function which will copy the value contained within a particular column, say ‘lastname’, within the row.

 

This:

 

$col[“default”] = “<a class=’ui-custom-icon ui-icon ui-icon-document’ title=’Copy secure link’ onclick=’copyURL({id})’></a>”;

 

Doesn’t seem to pass the id of the row.

 

Thanks.

1 Answers
Abu Ghufran Staff answered 3 years ago

Hello,

Please make sure you have $col[“name”] = “id”; exist when using {id} as placeholder.

You can share or email full code for review in case issue exist.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

0 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?