Apr 02, 2019, 3:17 PM
Is there a method to check the control of what is the xtype of the root control?
I have a formPanel that has 4 controls and one of them is a _tab2BGrid.
Which is called MainTabGrid and that extend to another control called GridPanelControl and that is extended from the grid panel control.
I want to be able to check if my control has control of xtype grid.
This is how they extend to each other:
Which is called MainTabGrid and that extend to another control called GridPanelControl and that is extended from the grid panel control.
I want to be able to check if my control has control of xtype grid.
if (this._tab2BGrid.Contains(xtype.Grid)) {
check store and do other stuff.
}
This is how they extend to each other:
Ext.define('App.Win.TabContainters.TabContainersMain', (function() {
var publicInterface = {
extend: 'Ext.form.FormPanel',
_tab1A: null,
_tab2BGrid: null,
_tab3C: null,
_tab4D: null,
Ext.define('ALA.Win.PiecesGrid', (function() {
var publicInterface = {
extend: 'App.Ext.GridPanelControl',
Ext.define('ALA.Ext.GridPanelControl', (function () {
var publicInterface = {
extend: 'Ext.grid.Panel',
Last edited by juan; Apr 02, 2019 at 7:10 PM.