Table Of Contents

Previous topic

GeoAdmin.CatalogTree

Next topic

GeoAdmin.ContextPopup

This Page

GeoAdmin.ComponentMixin

Ext.Component or Object or Function This property is to be used when an Ext component is to be inserted in the node. This property can be used in several ways, it can reference:

  • Ext.Component a component instance. In this case the provided component is just rendered in the node.
  • Object a component config (using xtype). In this case the component is instantiated and then rendered in the node.
  • Function a function returning a component instance or config. This function is passed a reference to the layer node and to the Ext element (Ext.Element) into which the component is to be rendered, it must returned a component instance or config.
  • Object an object with a fn and scope properties. fn references a function returning a component instance or config (like previously), scope is its execution scope.

This property applies only if the node is configured with a GeoAdmin.LayerNodeUI UI instance (which is the default).

Example Use

Sample code to create a layer node UI with a radio button:

var uiClass = Ext.extend(
    GeoExt.tree.LayerNodeUI,
    new GeoAdmin.ComponentMixin()
);

Sample code to create a tree node UI with a radio button:

var uiClass = Ext.extend(
    Ext.tree.TreeNodeUI,
    new GeoAdmin.ComponentMixin()
);