This is a migrated thread and some comments may be shown as answers.

passing arguments in template function

0 Answers 453 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Khushali
Top achievements
Rank 1
Khushali asked on 05 Jun 2012, 09:24 AM
Hi,

I am using column template for few of the columns. Adding hyperlink using these templates. Now, i want to pass the column value on click of this hyperlink and also a string. Right now, i am able to pass the column value, but not a string. Please help.

sample code of template :
    template:'<a href = "javascript:void(0)" onclick ="goToNewTab(\'#=firstname#\')">#=firstname#</a>'

I want to pass one more string as a parameter. How can i do that ?

Thanks,
Khushali

No answers yet. Maybe you can help?

Tags
Templates
Asked by
Khushali
Top achievements
Rank 1
Share this question
or