Hello I please you for a help or hint.
I want to load an external template with placeholders. and after this I want to fill placeholders with content. I did this:
{
view: 'template',
id:'template1',
data:{
text: 'Hello Mr. Mishmash',
},
on:{
onAfterLoad: function(){
//Load template
webix.ajax().post('/Template/load/', {},
function (text) {
$$('Template1').setHTML('<div id="WelcomeTemplate" style="margin:10px;">'+text+'</div>');
}
);
},
}
}
placeholder is #text#. That means I load an external template with placeholders which should be filld with content! Is this possible? And what is the best way?
Please
Michael