Class sap.m.ObjectNumberModule: sap/m/ObjectNumber
The ObjectNumber control displays number and number unit properties for an object. The number can be displayed using semantic colors to provide additional meaning about the object to the user.
Since: 1.12.
sClassName
and enriches it with the information contained in oClassInfo
.ariaDescribedBy
.ariaDescribedBy
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- number : string
- numberUnit : string
- emphasized : boolean (default: true)
- state : sap.ui.core.ValueState (default: None)
- unit : string
- textDirection : sap.ui.core.TextDirection (default: Inherit)
- textAlign : sap.ui.core.TextAlign (default: Begin)
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
{string} | sId? | ID for the new control, generated automatically if no ID is given |
{object} | mSettings? | Initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
ariaDescribedBy
. {string|sap.ui.core.Control} | vAriaDescribedBy | the ariaDescribedBy to add; if empty, nothing is inserted |
{sap.m.ObjectNumber} | Reference to this in order to allow method chaining |
ariaDescribedBy
. {sap.ui.core.Control[]} |
emphasized
. Indicates if the object number should appear emphasized.
Default value is true
.
{boolean} | Value of property emphasized |
number
. Defines the number field.
{string} | Value of property number |
state
. Determines the object number's value state. Setting this state will cause the number to be rendered in state-specific colors (only blue-crystal theme).
Default value is None
.
{sap.ui.core.ValueState} | Value of property state |
textAlign
. Sets the horizontal alignment of the number and unit.
Default value is Begin
.
{sap.ui.core.TextAlign} | Value of property textAlign |
textDirection
. Available options for the number and unit text direction are LTR(left-to-right) and RTL(right-to-left). By default, the control inherits the text direction from its parent control.
Default value is Inherit
.
{sap.ui.core.TextDirection} | Value of property textDirection |
unit
. Defines the number units qualifier. If numberUnit and unit are both set, the unit value is used.
- Since:
- 1.16.1
{string} | Value of property unit |
ariaDescribedBy
. {sap.ui.core.Control[]} | An array of the removed elements (might be empty) |
ariaDescribedBy
. {int|string|sap.ui.core.Control} | vAriaDescribedBy | The ariaDescribedByto be removed or its index or ID |
{sap.ui.core.Control} | the removed ariaDescribedBy or null |
emphasized
. Indicates if the object number should appear emphasized.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bEmphasized | New value for property emphasized |
{sap.m.ObjectNumber} | Reference to this in order to allow method chaining |
number
. Defines the number field.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sNumber | New value for property number |
{sap.m.ObjectNumber} | Reference to this in order to allow method chaining |
{sap.ui.core.ValueState} | sState | The state to be set to |
{ObjectNumber} | this pointer for chaining |
{sap.ui.core.TextAlign} | sAlign | The new value |
textDirection
. Available options for the number and unit text direction are LTR(left-to-right) and RTL(right-to-left). By default, the control inherits the text direction from its parent control.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Inherit
.
{sap.ui.core.TextDirection} | sTextDirection | New value for property textDirection |
{sap.m.ObjectNumber} | Reference to this in order to allow method chaining |
unit
. Defines the number units qualifier. If numberUnit and unit are both set, the unit value is used.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sUnit | New value for property unit |
- Since:
- 1.16.1
{sap.m.ObjectNumber} | Reference to this in order to allow method chaining |
numberUnit
. Defines the number units qualifier.
- Deprecated:
- Since version 1.16.1.
Replaced by unit property due to the number before unit is redundant.
{string} | Value of property numberUnit |
numberUnit
. Defines the number units qualifier.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sNumberUnit | New value for property numberUnit |
- Deprecated:
- Since version 1.16.1.
Replaced by unit property due to the number before unit is redundant.
{sap.m.ObjectNumber} | Reference to this in order to allow method chaining |