Is there a way i can call JavaScript function on data-bind like this:
>
function trimString(value, maxLen) { //Return undefined, and short strings if (value === undefined) return undefined; if (value.length < maxLen) return value; return value.substring(0, (maxLen - 1)); }