Namespace: PP;
DataSource
The DataSource class is a basic class used to work with visual components data source.
PP.initClass(PP.DataSource, PP.Object, "PP.DataSource");
Constructor name | Brief description | |
DataSource | The DataSource constructor creates an instance of the DataSource class. |
Property name | Brief description | |
AttributeName | The AttributeName property determines and returns attribute name by its identifier. | |
AttributesNames | The AttributesNames property sets the object that contains names of data source attributes. | |
Data | The Data property determines and returns data for the selected element of the specified series. | |
ItemName | The ItemName property determines and returns series name by its identifier. | |
ItemNames | The ItemNames property sets the object that contains names of data source elements. | |
Title | The Title property sets chart or map title. |
Method name | Brief description | |
add | The add method adds data for the specified series attribute. | |
clear | The clear method clears data source. | |
getAttributeData | The getAttributeData method returns array of all series values by a single attribute. | |
getFirstNotNullData | The getFirstNotNullData method returns the first non-empty value of the specified attribute. | |
getMaxIndexData | The getMaxIndexData method returns maximum number of elements by all attributes. | |
getSeries | The getSeries method returns data series. | |
getSeriesCount | The getSeriesCount method returns the number of series in a data source. | |
getTimeAxis | The getTimeAxis method returns data for the specified series attribute. | |
hasItem | The hasItem method determines whether data of the series with the specified identifier is available. | |
isIndexLoaded | The isIndexLoaded method determines whether data for element with the specified index is loaded. | |
loadData | The loadData method loads additional data to a source. | |
remove | The remove method removes data for the specified series attribute. |
Event name | Brief description | |
DataChanged | The DataChanged event occurs when data in the source is changed. |
Property name | Brief description | |
Data | The Data property associates a random object with this component. | |
Id | The Id property sets component identifier. | |
Settings | The Settings property sets the component parameters. |
Method name | Brief description | |
clone | The clone method creates a copy of object. It is not implemented in PP.Ui.Control. | |
dispose | The dispose method deletes the component. | |
getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |
See also: