Scrivito JS SDK 1.40.0 Released

Posted on March 25, 2024

Improvements

Intermediately rendered components during loading time

Scrivito.provideComponent now lets you give proper feedback to the visitor in cases where the actual component that is provided requires some time to load and render itself. This usually short time gap can now be bridged by temporarily displaying, for example, a spinner, which can be accomplished using the new options parameter that lets you specify a loading component. See the API documentation for an example.

Better recognizable data widgets

It is now easier for editors to identify data widgets, i.e., widgets with a data attribute of the datalocator type, as they now have a dedicated border color and handle icon.

Counting data items

Developers now have DataScope#count available to determine the total number of items in a DataScope. Calling this method executes the underlying DataClass’s index callback with IndexParams#includeCount set to true.

Thank you for using Scrivito!