Custom html/javascript in Sproutcore? -
is possible have custom html/javascript in sproutcore?
i have use code cloud service provider.
yes, rather easy. in view can define 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 want, can go here."     );    }  })   you can use firsttime property know if rendering first time (put out everything), or updating existing code.
you can find out more:
Comments
Post a Comment