Passing string parameter to helper function in template engine

I can't seem to pass in a static string parameter to the helper function in the template engine. It throws an unexpected string error. Is there a way I can pass in a string parameter?

var customHelper = {
    upperCase: function upperCase(str, suffix) {
        return str.toUpperCase() + suffix;
    }
};

var getDOMString = ej.base.compile('${upperCase("abc", "def")}', customHelper);

let opElem = getDOMString(data);
console.log(opElem[0].innerHTML);




1 Reply 1 reply marked as answer

JA Jesus Arockia Sankaran S Syncfusion Team February 9, 2021 09:42 AM UTC

Hi Hosney, 

Thank you for contacting Syncfusion support. 

We have validated your requirement and we like to let you know that we have already logged a feature request on this and it can be tracked through our feedback portal below. 


We expect that this will be available with our Volume 1, 2021 release scheduled in the end of March and if you have any more specification/suggestions to the feature request you can add it as a comment in the portal. 

Please get back to us if you have any queries. 

Regards, 
Jesus Arockia Sankaran S 


Marked as answer
Loader.
Up arrow icon