Optional
When using properties of type LiquidTemplateSource, you have to manually cast the given string to LiquidTemplateSource like this:
LiquidTemplateSource
string
dataview.setProperty('dataTemplate', '<span>{{ Name }}</span>' as LiquidTemplateSource); Copy
dataview.setProperty('dataTemplate', '<span>{{ Name }}</span>' as LiquidTemplateSource);
When using properties of type
LiquidTemplateSource, you have to manually cast the givenstringtoLiquidTemplateSourcelike this: