PDA

View Full Version : [OPEN] Ext.view.AbstractView/Ext.view.Table/Ext.tree.View:undocumented instance properties



clampart
15 Mar 2017, 1:20 PM
Hello Sencha team,
I found some undocumented properties for Ext.view.AbstractView/Ext.view.Table/Ext.tree.View,
which are set via Ext.apply in Ext.panel.Table:
http://docs.sencha.com/extjs/6.2.1/classic/src/Table.js-1.html#line1579


viewConfig = Ext.apply({
grid: me,
ownerGrid: me.ownerGrid,
deferInitialRefresh: me.deferRowRender,
variableRowHeight: me.variableRowHeight,
preserveScrollOnRefresh: true,
trackOver: me.trackMouseOver !== false,
throttledUpdate: me.throttledUpdate === true,
xtype: me.viewType,
store: me.store,
headerCt: me.headerCt,
columnLines: me.columnLines,
rowLines: me.rowLines,
navigationModel: 'grid',
features: me.features,
panel: me,
emptyText: me.emptyText || ''
}, me.viewConfig);

A useful one is 'panel', which can be used as direct reference to the containing panel
in such eventlisteners that receive the view as parameter - without using up().

All the ones not documented are

grid
variableRowHeight
headerCt
columnLines
rowLines
features
panel


I think some of them aren't in active usage anymore and are remains from past versions.
grid and panel seem to be the same as ownerGrid.

Instances of tableview and treeview are set up under
https://fiddle.sencha.com/#view/editor&fiddle/1s11 (https://fiddle.sencha.com/#view/editor&fiddle/1s11)
1s11

Kind regards,
clampart

greg.barry
20 Mar 2017, 12:07 PM
Thanks for the report! I have opened a bug in our bug tracker.