Class type Ext_view_View.t


class type t = object .. end
Inherits
method clearHighlight : unit Js.meth

Un-highlights the currently highlighted item, if any.


method focusNode : Ext_data_Model.t Js.t -> unit Js.meth

Focuses a node in the view.

Parameters:


method highlightItem : Dom_html.element Js.t -> unit Js.meth

Highlights a given item in the View. This is called by the mouseover handler if overItemCls and trackOver are configured, but can also be called manually by other code, for instance to handle stepping through the list via keyboard navigation.

Parameters:


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 refresh : unit Js.meth

Refreshes the view by reloading the data from the store and re-rendering the template.