Ext.define('PVE.panel.NotesView', {
extend: 'Ext.panel.Panel',
+ title: gettext("Notes"),
+ style: 'padding-left:10px',
+ bodyStyle: 'white-space:pre',
+ bodyPadding: 10,
+ scrollable: true,
+
load: function() {
var me = this;
}
Ext.apply(me, {
- title: gettext("Notes"),
- style: 'padding-left:10px',
- bodyStyle: 'white-space:pre',
- bodyPadding: 10,
- autoScroll: true,
listeners: {
render: function(c) {
c.el.on('dblclick', function() {
defaults: { statusStore: me.statusStore },
items: [
{
- title: gettext('SummaryTODO'),
- xtype: 'panel',
-// title: gettext('Summary'),
-// xtype: 'pveQemuSummary',
+ title: gettext('Summary'),
+ xtype: 'pveQemuSummary',
itemId: 'summary'
} ]
});
Ext.applyIf(me, {
cwidth1: 150,
- height: 166,
rows: rows
});
extend: 'Ext.panel.Panel',
alias: 'widget.pveQemuSummary',
+ tbar: [ '->', { xtype: 'pveRRDTypeSelector' } ],
+ scrollable: true,
+ bodyStyle: 'padding:10px',
+ defaults: {
+ style: 'padding-top:10px',
+ width: 800
+ },
+
initComponent: function() {
var me = this;
});
Ext.apply(me, {
- tbar: [ '->', { xtype: 'pveRRDTypeSelector' } ],
- autoScroll: true,
- bodyStyle: 'padding:10px',
- defaults: {
- style: 'padding-top:10px',
- width: 800
- },
items: [
{
style: 'padding-top:0px',
]
});
- me.on('show', function() {
+ me.on('activate', function() {
notesview.load();
});
items: {
xtype: 'textarea',
name: 'description',
- rows: 7,
+ height: 200,
value: '',
hideLabel: true
}