When i'm trying to add the items to the table, getting error "Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value."
View
--------
Ext.define('DepteditlayoutView', {
extend: 'Ext.panel.Panel',
alias: 'widget.depteditlayoutview',
autoScroll: true,
id: 'depteditlayoutview',
layout: {
type: 'table',
columns: 2
},
});
Controller
------------
items = [
{
title: 'Item 1',
rowspan: 2,
height: 410
},
{
title: 'Item 2',
rowspan: 2,
height: 410
},
{
title: 'Item 3',
rowspan: 0,
height: 205
},
{
title: 'Item 4',
rowspan: 0,
height: 205
}
];
this.getDepteditlayoutViewer().add(items );
View
--------
Ext.define('DepteditlayoutView', {
extend: 'Ext.panel.Panel',
alias: 'widget.depteditlayoutview',
autoScroll: true,
id: 'depteditlayoutview',
layout: {
type: 'table',
columns: 2
},
});
Controller
------------
items = [
{
title: 'Item 1',
rowspan: 2,
height: 410
},
{
title: 'Item 2',
rowspan: 2,
height: 410
},
{
title: 'Item 3',
rowspan: 0,
height: 205
},
{
title: 'Item 4',
rowspan: 0,
height: 205
}
];
this.getDepteditlayoutViewer().add(items );
Aucun commentaire:
Enregistrer un commentaire