class type t =Inheritsobject..end
method hasView : bool Js.t Js.propTrue to indicate that a view has been injected into the panel.
Defaults to: false
method optimizedColumnMove : bool Js.t Js.propIf 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.methInvoked after the Panel is Collapsed.
Parameters:
bool Js.t
method afterExpand : bool Js.t -> unit Js.methInvoked after the Panel is Expanded.
Parameters:
bool Js.t
method applyState : 'a. 'a Js.t -> unit Js.methApplies 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:
_ Js.t The state
method beforeDestroy : unit Js.methInvoked before the Component is destroyed.
method getSelectionModel : 'b. (#Ext_selection_Model.t as 'b) Js.t Js.methReturns the selection model being used and creates it via the configuration if it has not been created already.
Returns:
#Ext_selection_Model.t Js.t selModel
method getState : 'c. 'c Js.t Js.methThe 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.methReturns the store associated with this Panel.
Returns:
Ext_data_Store.t Js.t The store
method getView : Ext_view_Table.t Js.t Js.methGets the view for this panel.
method initComponent : unit Js.methThe 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.methAllows addition of behavior to the destroy operation. After calling the superclass's onDestroy, the Component will be destroyed.