Skip to main content

renderType

Description​

Optional. Defines how cards are rendered

The property helps optimize performance when working with a large number of cards.

Usage​

renderType?: "default" | "lazy";

Parameters​

  • default - renders all cards loaded to the widget (set by default)
  • lazy - renders only visible cards

Example​

new booking.Booking("#root", {
data,
renderType: "lazy",
// other parameters
});

The snippet below shows how to handle rendering large data sets: