]>
Commit | Line | Data |
---|---|---|
947f0963 TL |
1 | Ext.define('Admin.view.dashboard.Weather', { |
2 | extend: 'Ext.Component', | |
3 | xtype: 'weather', | |
4 | baseCls: 'weather-panel', | |
5 | ||
6 | border: false, | |
7 | height: 80, | |
8 | ||
9 | data: { | |
10 | icon: 'cloud-icon.png', | |
11 | forecast: 'Partly Cloudy', | |
12 | temperature: 25 | |
13 | }, | |
14 | ||
15 | tpl: '<div class="weather-image-container"><img src="resources/images/icons/{icon}" alt="{forecast}"/></div>'+ | |
16 | '<div class="weather-details-container">' + | |
17 | '<div>{temperature}°</div>' + | |
18 | '<div>{forecast}</div>' + | |
19 | '</div>' | |
20 | }); |