| Package | com.happytoad.libs.riatrax | ![]() |
| Class | public class Tree | |
| Inheritance | Tree mx.controls.Tree |
Hide MXML Syntax
The <rx:RxTabBar> tag inherits all of the
tag attributes of its superclass, and adds the following tag attributes:
<rx:Tree
Properties
gaCategory="any"
gaAction="any"
gaLabel="any"
gaValue="1"
gaMode="unique|all|none"
/>
See also
| Property | Defined by | ||
|---|---|---|---|
| gaAction : String
String to be passed to Google as the Action property.
| Tree | ||
| gaCategory : String
String to be passed to Google as the Category property.
| Tree | ||
| gaLabel : String
String to be passed to Google as the Label property.
| Tree | ||
| gaMode : String
String to set tracking mode for compoment.
| Tree | ||
| gaValue : Number
Number to be passed to Google as the Value property.
| Tree | ||
| Method | Defined by | ||
|---|---|---|---|
|
Tree()
Constructor.
| Tree | ||
| gaAction | property |
gaAction:String [read-write]
String to be passed to Google as the Action property.
An optional action for the event (e.g. "Play").
public function get gaAction():String
public function set gaAction(value:String):void
| gaCategory | property |
gaCategory:String [read-write]
String to be passed to Google as the Category property.
An optional category for the event (e.g. "Videos").
public function get gaCategory():String
public function set gaCategory(value:String):void
| gaLabel | property |
gaLabel:String [read-write]
String to be passed to Google as the Label property.
An optional descriptor for the event.
public function get gaLabel():String
public function set gaLabel(value:String):void
| gaMode | property |
gaMode:String [read-write]
String to set tracking mode for compoment. ( unique | all | none )
This property defaults to unique. Set to all to track all events or none to disable tracking
public function get gaMode():String
public function set gaMode(value:String):void
| gaValue | property |
gaValue:Number [read-write]
Number to be passed to Google as the Value property.
An optional value to be aggregated with the event.
public function get gaValue():Number
public function set gaValue(value:Number):void
| Tree | () | constructor |
public function Tree()Constructor.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:rx="com.happytoad.libs.riatrax.*"
creationComplete="init()">
<mx:Script>
<![CDATA[
import com.happytoad.libs.riatrax.Tracker;
private var tracker:Tracker = Tracker.getInstance();
private function init():void{
tracker.account="UA-xxxxxx-y";
tracker.display=this;
tracker.visualDebug = true;
}
]]>
</mx:Script>
<mx:XMLList id="treeData">
<node label="Alphabet">
<node label="A">
<node label="apple"/>
<node label="artist"/>
</node>
<node label="B">
<node label="banana"/>
<node label="bowling"/>
</node>
<node label="C"/>
<node label="D"/>
</node>
</mx:XMLList>
<rx:Tree labelField="@label" horizontalCenter="0" verticalCenter="0"
showRoot="false" dataProvider="{treeData}" width="200"/>
</mx:Application>