Packageview.primeFaces.surfaceComponents.components
Classpublic class DataTable
InheritanceDataTable Inheritance spark.components.DataGrid
Implements view.interfaces.IGetChildrenSurfaceComponent, view.interfaces.IDataProviderComponent, view.interfaces.IHistorySurfaceCustomHandlerComponent

Representation of PrimeFaces dataTable component

Visual Editor XML:
     	<DataTable
     		Attributes
     		width="120"
     		height="120"
     		paginator="false"
     		resizableColumns="false"
	  	var="" value=""
     		emptyMessage="No records found.">
	 		   <column headerText="Column 1" value=""/>
	 </DataTable>
     
PrimeFaces output:
      <p:dataTable
          	Attributes
          	style="width:120px;height:120px;"
          	paginator="false"
          	resizableColumns="false"
	     	var="" value=""
	     	emptyMessage="No records found.">
	          <p:column headerText="Column 1" value="">
	 		        <h:outputText value=""/>
	          </p:column>
	 </p:dataTable>
     

Default MXML PropertydataProvider



Public Properties
 PropertyDefined By
  emptyMessage : String
PrimeFaces: emptyMessage
DataTable
  height : Number
[override] [read-only] PrimeFaces: style
DataTable
  paginator : Boolean
PrimeFaces: paginator
DataTable
  percentHeight : Number
[override] [read-only] PrimeFaces: style
DataTable
  percentWidth : Number
[override] [read-only] PrimeFaces: style
DataTable
  resizableColumns : Boolean
[override] [write-only] PrimeFaces: resizableColumns
DataTable
  tableValue : String
PrimeFaces: value
DataTable
  tableVar : String
PrimeFaces: var
DataTable
  width : Number
[override] [read-only] PrimeFaces: style
DataTable
Public Methods
 MethodDefined By
  
DataTable
  
toRora():XML
DataTable
  
DataTable
Public Constants
 ConstantDefined By
  ELEMENT_NAME : String = DataTable
[static]
DataTable
  PRIME_FACES_XML_ELEMENT_NAME : String = dataTable
[static]
DataTable
Property Detail
emptyMessageproperty
emptyMessage:String

PrimeFaces: emptyMessage

The default value is "No records found.".

This property can be used as the source for data binding.


Implementation
    public function get emptyMessage():String
    public function set emptyMessage(value:String):void

Example
Visual Editor XML:
<DataTable emptyMessage="No records found."/>
PrimeFaces:
<p:dataTable emptyMessage="No records found."/>
heightproperty 
height:Number  [read-only] [override]

PrimeFaces: style

The default value is "120".

This property can be used as the source for data binding.


Implementation
    public function get height():Number

Example
Visual Editor XML:
<DropDownList height="120"/>
PrimeFaces:
<p:dataTable style="width:100px;height:120px;"/>
paginatorproperty 
paginator:Boolean

PrimeFaces: paginator

The default value is "false".

This property can be used as the source for data binding.


Implementation
    public function get paginator():Boolean
    public function set paginator(value:Boolean):void

Example
Visual Editor XML:
<DataTable paginator="false"/>
PrimeFaces:
<p:dataTable paginator="false"/>
percentHeightproperty 
percentHeight:Number  [read-only] [override]

PrimeFaces: style

This property can be used as the source for data binding.


Implementation
    public function get percentHeight():Number

Example
Visual Editor XML:
<DataTable percentHeight="80"/>
PrimeFaces:
<p:dataTable style="height:80%;"/>
percentWidthproperty 
percentWidth:Number  [read-only] [override]

PrimeFaces: style

This property can be used as the source for data binding.


Implementation
    public function get percentWidth():Number

Example
Visual Editor XML:
<DataTable percentWidth="80"/>
PrimeFaces:
<p:dataTable style="width:80%;"/>
resizableColumnsproperty 
resizableColumns:Boolean  [write-only] [override]

PrimeFaces: resizableColumns

The default value is "false".

This property can be used as the source for data binding.


Implementation
    public function set resizableColumns(value:Boolean):void

Example
Visual Editor XML:
<DataTable resizableColumns="false"/>
PrimeFaces:
<p:dataTable resizableColumns="false"/>
tableValueproperty 
tableValue:String

PrimeFaces: value

This property can be used as the source for data binding.


Implementation
    public function get tableValue():String
    public function set tableValue(value:String):void

Example
Visual Editor XML:
<DataTable value=""/>
PrimeFaces:
<p:dataTable value=""/>
tableVarproperty 
tableVar:String

PrimeFaces: var

This property can be used as the source for data binding.


Implementation
    public function get tableVar():String
    public function set tableVar(value:String):void

Example
Visual Editor XML:
<DataTable var=""/>
PrimeFaces:
<p:dataTable var=""/>
widthproperty 
width:Number  [read-only] [override]

PrimeFaces: style

The default value is "120".

This property can be used as the source for data binding.


Implementation
    public function get width():Number

Example
Visual Editor XML:
<DataTable width="120"/>
PrimeFaces:
<p:dataTable style="width:120px;height:30px;"/>
Constructor Detail
DataTable()Constructor
public function DataTable()



Method Detail
toRora()method
public function toRora():XML

Returns
XML
toRoyaleConvertCode()method 
public function toRoyaleConvertCode():XML

Returns
XML
Constant Detail
ELEMENT_NAMEConstant
public static const ELEMENT_NAME:String = DataTable

PRIME_FACES_XML_ELEMENT_NAMEConstant 
public static const PRIME_FACES_XML_ELEMENT_NAME:String = dataTable