javascript - Bootbox HTML Render -
what proper method render html bootbox callback function?
the problem i'm running i'm trying make html email on callback , none of html tags rendering properly.
callback: function () { var text = "greetings,<br /><br />" +
thanks in advance.
try use blaze.renderwithdata
or blaze.render
load template containing html inside bootbox. here example
bootbox.dialog({ message: "<div id='dialoganchor'></div>",//i not sure if found. //you can set anchor div in parent document title: "such nice modal!", animate: true, buttons: { danger: { label: 'cancel', classname: "btn-default", callback: function() { } }, success: { label:'done', classname: "btn-success", callback: function() { blaze.renderwithdata(template.yourhtml, {email:this.content}, $("#dialoganchor")[0]); //or alternatively blaze.render(template.yourhtml, $("#dialoganchor")[0]); }} }});
Comments
Post a Comment