Class sap.m.ProgressIndicatorModule: sap/m/ProgressIndicator
Shows the progress of a process in a graphical way. To indicate the progress, the inside of the ProgressIndicator is filled with a color. Additionally, a user-defined string can be displayed on the ProgressIndicator.
Since: 1.13.1.
sClassName
and enriches it with the information contained in oClassInfo
. 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
- enabled : boolean (default: true)
- state : sap.ui.core.ValueState (default: None)
- displayValue : string
- percentValue : float (default: 0)
- showValue : boolean (default: true)
- width : sap.ui.core.CSSSize (default: 100%)
- height : sap.ui.core.CSSSize
- textDirection : sap.ui.core.TextDirection (default: Inherit)
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 |
displayValue
. Specifies the text value to be displayed in the bar.
{string} | Value of property displayValue |
enabled
. Switches enabled state of the control. Disabled fields have different colors, and cannot be focused.
Default value is true
.
{boolean} | Value of property enabled |
height
. Specifies the height of the control. The default value depends on the theme. Suggested size for normal use is 2.5rem (40px). Suggested size for small size (like for use in ObjectHeader) is 1.375rem (22px).
- Since:
- 1.15.0
{sap.ui.core.CSSSize} | Value of property height |
percentValue
. Specifies the numerical value in percent for the length of the progress bar.
Default value is 0
.
{float} | Value of property percentValue |
showValue
. Indicates whether the displayValue should be shown in the ProgressIndicator.
Default value is true
.
{boolean} | Value of property showValue |
state
. Specifies the state of the bar. Enumeration sap.ui.core.ValueState provides Error (red), Warning (yellow), Success (green), None (blue) (default value).
Default value is None
.
{sap.ui.core.ValueState} | Value of property state |
textDirection
. Specifies the element's text directionality with enumerated options (RTL or LTR). By default, the control inherits text direction from the DOM.
Default value is Inherit
.
- Since:
- 1.28.0
{sap.ui.core.TextDirection} | Value of property textDirection |
width
. Specifies the width of the control.
Default value is 100%
.
{sap.ui.core.CSSSize} | Value of property width |
displayValue
. Specifies the text value to be displayed in the bar.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sDisplayValue | New value for property displayValue |
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |
enabled
. Switches enabled state of the control. Disabled fields have different colors, and cannot be focused.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bEnabled | New value for property enabled |
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |
height
. Specifies the height of the control. The default value depends on the theme. Suggested size for normal use is 2.5rem (40px). Suggested size for small size (like for use in ObjectHeader) is 1.375rem (22px).
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSSize} | sHeight | New value for property height |
- Since:
- 1.15.0
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |
percentValue
. Specifies the numerical value in percent for the length of the progress bar.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0
.
{float} | fPercentValue | New value for property percentValue |
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |
showValue
. Indicates whether the displayValue should be shown in the ProgressIndicator.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowValue | New value for property showValue |
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |
state
. Specifies the state of the bar. Enumeration sap.ui.core.ValueState provides Error (red), Warning (yellow), Success (green), None (blue) (default value).
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is None
.
{sap.ui.core.ValueState} | sState | New value for property state |
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |
textDirection
. Specifies the element's text directionality with enumerated options (RTL or LTR). By default, the control inherits text direction from the DOM.
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 |
- Since:
- 1.28.0
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |
width
. Specifies the width of the control.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
{sap.ui.core.CSSSize} | sWidth | New value for property width |
{sap.m.ProgressIndicator} | Reference to this in order to allow method chaining |