2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00
fhem-mirror/fhem/www/frontend/app/view/ChartGridPanel.js
johannnes 25ab56a7d1 structure changes...
git-svn-id: https://svn.fhem.de/fhem/trunk@4475 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-27 15:03:31 +00:00

65 lines
1.2 KiB
JavaScript

/**
* A Panel containing device specific information
*/
Ext.define('FHEM.view.ChartGridPanel', {
extend: 'Ext.panel.Panel',
alias : 'widget.chartgridpanel',
requires: [
'Ext.form.FieldSet',
'Ext.layout.container.Column',
'Ext.form.field.ComboBox'
],
/**
*
*/
title: 'Chart data',
/**
*
*/
jsonrecords: null,
/**
*
*/
collapsible: true,
titleCollapse: true,
animCollapse: false,
/**
* init function
*/
initComponent: function() {
var me = this;
var chartdatastore = Ext.create('Ext.data.Store', {
fields: [],
data: [],
proxy: {
type: 'memory',
reader: {
type: 'json'
}
}
});
var chartdatagrid = {
xtype: 'grid',
height: 170,
name: 'chartdata',
columns: [
],
store: chartdatastore
};
me.items = [chartdatagrid];
me.callParent(arguments);
}
});