Using JsViews is it possible to have a converter precede a helper function in a data-link property? Somehow like this..
<div data-link="{myConverter:~myFunction('param1'):}"></div>
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you mean that you want the converter to convert the value of the
param1field of your data object, and then pass it to themyConverterfunction, then no. The converter will process the result of the expression~myFunction(...).But you can create an equivalent helper function to your converter, and then chain the helpers:
BTW this will be data linked so that it updates when the param1 field changes. – I’m not sure if you meant to put quotes around ‘param1’. If ‘param1’ is a string literal you are passing in, then data-linking to it won’t have any reason to update, so you could just write: