How to use char ‘#’ in list/grid templates?
f.e.
template: " #Name# "
catch exception on parsing ((
to avoid it, I need to use next, but it isnt comilfo:
template: " <a href=’{common.href}’ … ",
type: {
href: ‘#’,
}
How to use char ‘#’ in list/grid templates?
f.e.
template: " #Name# "
catch exception on parsing ((
to avoid it, I need to use next, but it isnt comilfo:
template: " <a href=’{common.href}’ … ",
type: {
href: ‘#’,
}
Actually a single shart must work without any problems
http://webix.com/snippet/26d235e9
If necessary you can always fallback to functional templates
template:function(obj){
return "#any#" + obj.value;
}
I test your template:
{ view:"list", template:"<a href='#/controller/action'>#title#</a>", data:grid_data }
It’s very strange… but really works! )
Thank you!
Template converts all strings that match the next pattern #{valid property name}#
, so it will correctly ignore standalone # chars
try to use template:
“< a href=’#!/projects/edit/?id=#id#’>#name#< /a>” ,
error remains:
Invalid template:< a href=’"+webix.template.escape(obj./projects/edit/?id=)+“id#’>”+(obj.name)+"< /a>