ia.TableConfig Class
Contains the configuration information for a table.
Constructor
ia.TableConfig
-
xml
Parameters:
-
xml
XMLThe XML data that describes the table.
Item Index
Methods
Properties
Methods
_parseButtonXML
-
xml
Protected method to be used by subclasses when parsing xml.
Parameters:
-
xml
XMLThe xml data.
_parseComponentXML
-
xml
Protected method to be used by subclasses when parsing xml.
Parameters:
-
xml
XMLThe xml data.
_parseTableXML
-
xml
Protected method to be used by subclasses when parsing xml.
Parameters:
-
xml
XMLThe xml data.
getColumn
-
id
Returns the column that corresponds to the given id.
The column is an object with the following structure:
{id:"name", formattedId:"name_formatted", label:"Features", type:"categoric" width:0.25}
Parameters:
-
id
StringThe id.
Returns:
getColumns
()
Object
Returns the table columns.
The array of columns has the following structure:
[{id:"name", formattedId:"name_formatted", label:"Features", width:0.25},
{id:"value", formattedId:"value_formatted", label:"Indicator", width:0.25},
{id:"associate1", formattedId:"associate1_formatted", label:"Associate 1", width:0.25},
{id:"associate2", formattedId:"associate2_formatted" label:"Associate 2", width:0.25}]
Returns:
getColumnsForIndicator
-
indicator
-
substitution
Returns the table columns for the given indicator.
The array of columns has the following structure:
[{id:"name", formattedId:"name_formatted", label:"Features", width:0.25},
{id:"value", formattedId:"value_formatted", label:"Indicator", width:0.25},
{id:"associate1", formattedId:"associate1_formatted", label:"Associate 1", width:0.25},
{id:"associate2", formattedId:"associate2_formatted" label:"Associate 2", width:0.25}]
Parameters:
-
indicator
ia.IndicatorThe indicator.
-
substitution
ia.TextSubstitutionThe TextSubstitution object.
Returns:
getColumnsForIndicators
-
indicators
-
substitution
Returns the table columns for an array of indicators.
The array of columns has the following structure:
[{id:"name", formattedId:"name_formatted", label:"Features", width:0.25},
{id:"value", formattedId:"value_formatted", label:"Indicator", width:0.25},
{id:"associate1", formattedId:"associate1_formatted", label:"Associate 1", width:0.25},
{id:"associate2", formattedId:"associate2_formatted" label:"Associate 2", width:0.25}]
Parameters:
-
indicators
ia.IndicatorAn optional array of extra indicators.
-
substitution
ia.TextSubstitutionThe TextSubstitution object.
Returns:
getProperties
()
Associative Array
Returns the widgets properties.
Returns:
getProperty
-
id
Gets the value for the property with the given id.
Parameters:
-
id
StringThe property id.
Returns:
parseXML
-
xml
Parses in an XML object containing the configuration xml.
Parameters:
-
xml
XMLThe xml data.
setProperty
-
id
-
value
-
castValue
Sets the value for the property with the given id.
Parameters:
-
id
StringThe property id.
-
value
Number | StringThe property value.
-
castValue
BooleanIndicates the value is a string and needs to be cast to the correct data type.
Properties
customColumns
object} Array of columns.
Custom columns that can be used instead of those defined in the config.
properties
Associative Array
The widgets properties, properties[propertyId] = property.
type
String
The widget node type 'component', 'table', 'button', 'text' or 'image'.
xml
XML
The raw xml data describing the object.