Class type Ext_panel_Table.t


class type t = object .. end
Inherits
method hasView : bool Js.t Js.prop

True to indicate that a view has been injected into the panel.

Defaults to: false

method optimizedColumnMove : bool Js.t Js.prop

If you are writing a grid plugin or a {Ext.grid.feature.Feature Feature} which creates a column-based structure which needs a view refresh when columns are moved, then set this property in the grid.

An example is the built in Summary Feature. This creates summary rows, and the summary columns must be in the same order as the data columns. This plugin sets the optimizedColumnMove to `false.


method afterCollapse : bool Js.t -> unit Js.meth

Invoked after the Panel is Collapsed.

Parameters:


method afterExpand : bool Js.t -> unit Js.meth

Invoked after the Panel is Expanded.

Parameters:


method applyState : 'a. 'a Js.t -> unit Js.meth

Applies the state to the object. This should be overridden in subclasses to do more complex state operations. By default it applies the state properties onto the current object.

Parameters:


method beforeDestroy : unit Js.meth

Invoked before the Component is destroyed.


method getSelectionModel : 'b. (#Ext_selection_Model.t as 'b) Js.t Js.meth

Returns the selection model being used and creates it via the configuration if it has not been created already.

Returns:


method getState : 'c. 'c Js.t Js.meth

The supplied default state gathering method for the AbstractComponent class.

This method returns dimension settings such as flex, anchor, width and height along with collapsed state.

Subclasses which implement more complex state should call the superclass's implementation, and apply their state to the result if this basic state is to be saved.

Note that Component state will only be saved if the Component has a stateId and there as a StateProvider configured for the document.


method getStore : Ext_data_Store.t Js.t Js.meth

Returns the store associated with this Panel.

Returns:


method getView : Ext_view_Table.t Js.t Js.meth

Gets the view for this panel.


method initComponent : unit Js.meth

The initComponent template method is an important initialization step for a Component. It is intended to be implemented by each subclass of Ext.Component to provide any needed constructor logic. The initComponent method of the class being created is called first, with each initComponent method up the hierarchy to Ext.Component being called thereafter. This makes it easy to implement and, if needed, override the constructor logic of the Component at any step in the hierarchy.

The initComponent method must contain a call to callParent in order to ensure that the parent class' initComponent method is also called.

All config options passed to the constructor are applied to this before initComponent is called, so you can simply access them with this.someOption.

The following example demonstrates using a dynamic string for the text of a button at the time of instantiation of the class.

Ext.define('DynamicButtonText', {
    extend: 'Ext.button.Button',

    initComponent: function() {
        this.text = new Date();
        this.renderTo = Ext.getBody();
        this.callParent();
    }
});

Ext.onReady(function() {
    Ext.create('DynamicButtonText');
});

method onDestroy : unit Js.meth

Allows addition of behavior to the destroy operation. After calling the superclass's onDestroy, the Component will be destroyed.