The Item for the field/property metadata used within MDC controls, an instance can be created to override the default/metadata behavior.
The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
Constructor for a new Item.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
new sap.ui.mdc.chart.Item(sId?, mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
sId? | string | ID for the new control, generated automatically if no ID is given |
|
mSettings? | object | initial settings for the new control |
Name | Type | Default Value | Description |
---|---|---|---|
key | string | The unique identifier of the chart item which reflects to the name of the data property in the resulting data set Visibility: public |
|
label | string | Label for the item, either as a string literal or by a pointer using the binding syntax to some property containing the label. NOTE: This property was bound internally if automatically created via metadata of oData service and please call "unbindProperty" before setting. Visibility: public |
|
type | string | string | The data type Visibility: public |
visible | boolean | true | The visibility of the chart item Visibility: public |
Method | Description |
---|---|
sap.ui.mdc.chart.Item.extend |
Creates a new subclass of class sap.ui.mdc.chart.Item with name
|
getKey |
Gets current value of property key. The unique identifier of the chart item which reflects to the name of the data property in the resulting data set |
getLabel |
Gets current value of property label. Label for the item, either as a string literal or by a pointer using the binding syntax to some property containing the label. NOTE: This property was bound internally if automatically created via metadata of oData service and please call "unbindProperty" before setting. |
sap.ui.mdc.chart.Item.getMetadata |
Returns a metadata object for class sap.ui.mdc.chart.Item. |
getType |
Gets current value of property type. The data type Default value is |
getVisible |
Gets current value of property visible. The visibility of the chart item Default value is |
setKey |
Sets a new value for property key. The unique identifier of the chart item which reflects to the name of the data property in the resulting data set When called with a value of |
setLabel |
Sets a new value for property label. Label for the item, either as a string literal or by a pointer using the binding syntax to some property containing the label. NOTE: This property was bound internally if automatically created via metadata of oData service and please call "unbindProperty" before setting. When called with a value of |
setType |
Sets a new value for property type. The data type When called with a value of Default value is |
setVisible |
Sets a new value for property visible. The visibility of the chart item When called with a value of Default value is |
Creates a new subclass of class sap.ui.mdc.chart.Item with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Gets current value of property key.
The unique identifier of the chart item which reflects to the name of the data property in the resulting data set
Gets current value of property label.
Label for the item, either as a string literal or by a pointer using the binding syntax to some property containing the label.
NOTE: This property was bound internally if automatically created via metadata of oData service and please call "unbindProperty" before setting.
Gets current value of property visible.
The visibility of the chart item
Default value is true
.
Sets a new value for property key.
The unique identifier of the chart item which reflects to the name of the data property in the resulting data set
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sKey | string |
New value for property |
Sets a new value for property label.
Label for the item, either as a string literal or by a pointer using the binding syntax to some property containing the label.
NOTE: This property was bound internally if automatically created via metadata of oData service and please call "unbindProperty" before setting.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sLabel | string |
New value for property |
Sets a new value for property type.
The data type
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "string"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sType | string | "string" |
New value for property |
Sets a new value for property visible.
The visibility of the chart item
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Param | Type | DefaultValue | Description |
---|---|---|---|
bVisible | boolean | true |
New value for property |