Can we refer an external HTML file inside alertify.dialog() implementation. Currently am using below code, which takes the html code to build my dialog.
alertify.myAlert || alertify.dialog('myAlert',function factory(){
return {
main:function(content){
this.setContent(content);
},
setup:function(){
return {
options:{
modal:false,
basic:true,
maximizable:false,
resizable:false,
padding:false
}
};
},
build:function() {
this.elements.content.innerHTML = "**<html>MY HTML CODE</html>**";
},
hooks: {
onshow: function() {
this.elements.dialog.style.height = '50%';
this.elements.dialog.style.width = '15%';
}
}
};
});
It looks dirty to have all html code here. I want to put this in a separate .html file and refer that in dialog implementation. Do we have any option for that?