extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
21 lines (17 loc) • 549 B
JavaScript
Ext.define('Admin.view.dashboard.Weather', {
extend: 'Ext.Component',
xtype: 'weather',
baseCls: 'weather-panel',
border: false,
height: 80,
data: {
icon: 'cloud-icon.png',
forecast: 'Partly Cloudy',
temperature: 25
},
tpl: '<div class="weather-image-container"><img src="resources/images/icons/{icon}" alt="{forecast}"/></div>'+
'<div class="weather-details-container">' +
'<div>{temperature}°</div>' +
'<div>{forecast}</div>' +
'</div>'
});