I’m creating a changelog and i decided to load my changelog from .html file
I’ve got
Ext.define('MeridianCRM.dialogs.recentСhanges.recentСhanges', {
extend : 'Ext.window.Window',
title : 'Последние изменения на сайте',
modal : true,
height : 400,
width : 500,
resizable : false,
html: 'changes.html',
buttons: [{
text: 'Закрыть',
handler: function() {
this.up('window').close();
}
}]
});
How i can solve this ? (html: ‘changes.html’)
How i can load html to my window ?
You’d need to load the html asynchronously, then inject it into your component. So:
So if you declare you component with id:
You can then do:
You can `integrate’ it into your panel like so:
Notice though, that you may have issues if the returned html contains
<head>tag (as the extjs page already has one).