Class sap.m.GrowingListModule: sap/m/GrowingList
sap.m.GrowingList control is the container for all list items and inherits from sap.m.List control. Everything like the selection, deletion, unread states and inset style are also maintained here. In addition the control provides a loading mechanism to request data from the model and append the list items to the list. The request is started manually by tapping on the trigger at the end of the list.
Deprecated API:Since version 1.16. Instead use "List" or "Table" control with setting "growing" property to "true"
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
- threshold : int (default: 20)
- triggerText : string
- scrollToLoad : boolean (default: false)
In addition, all settings applicable to the base type sap.m.List 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 |
- Deprecated:
- Since version 1.16. Instead use "List" or "Table" control with setting "growing" property to "true"
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.m.List.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 |
scrollToLoad
. If you set this property to true then user needs to scroll end to trigger loading a new page. Default value is false which means user needs to scroll end and then click button to load new page. NOTE: This property can be set true, if growing property is set "true" and if you only have one instance of this control inside the scroll container(e.g Page).
Default value is false
.
- Since:
- 1.16
{boolean} | Value of property scrollToLoad |
threshold
. Number of items requested from the server. To activate this you should set growing property to "true"
Default value is 20
.
- Since:
- 1.16
{int} | Value of property threshold |
triggerText
. Text which is displayed on the trigger at the end of the list. The default is a translated text ("Load More Data") coming from the messagebundle properties. This property can be used only if growing property is set "true" and scrollToLoad property is set "false".
- Since:
- 1.16
{string} | Value of property triggerText |
scrollToLoad
. If you set this property to true then user needs to scroll end to trigger loading a new page. Default value is false which means user needs to scroll end and then click button to load new page. NOTE: This property can be set true, if growing property is set "true" and if you only have one instance of this control inside the scroll container(e.g Page).
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bScrollToLoad | New value for property scrollToLoad |
- Since:
- 1.16
{sap.m.GrowingList} | Reference to this in order to allow method chaining |
threshold
. Number of items requested from the server. To activate this you should set growing property to "true"
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 20
.
{int} | iThreshold | New value for property threshold |
- Since:
- 1.16
{sap.m.GrowingList} | Reference to this in order to allow method chaining |
triggerText
. Text which is displayed on the trigger at the end of the list. The default is a translated text ("Load More Data") coming from the messagebundle properties. This property can be used only if growing property is set "true" and scrollToLoad property is set "false".
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sTriggerText | New value for property triggerText |
- Since:
- 1.16
{sap.m.GrowingList} | Reference to this in order to allow method chaining |