Yes, this is rather easy. In your view you can define a render() method:
App.myView = SC.View.extend({
render: function(context, firstTime) {
var someValue = `getValue`
context.push(
"<span class='mySpan'>", someValue, "</span>",
"Any Other html/javascript that you want, can go here."
);
}
})
You can also use the firstTime property to know if you are rendering the first time (put out everything), or just updating the existing code.
Yes, this is rather easy. In your view you can define a
render()
method:You can also use the
firstTime
property to know if you are rendering the first time (put out everything), or just updating the existing code.You can find out more: