New in 1.39.0 (BETA)

limit()

Returns the the number of items requested by the Scrivito SDK.

This parameter provides the number of objects that were requested by the Scrivito SDK. We recommend developers creating data connections to pass this value to the external data provider (e.g. backend service).

This allows to only load the exact number of items required by the frontend (if supported by the backend API), thus facilitating a better user experience by saving loading time.

Returns

Number – The limit of the current DataScope. If no limit was set (via DataScope#transform) a default of 20 is used.