Skip to content

Commit 2cc45c8

Browse files
committed
[update] rendertype added
1 parent 6f74381 commit 2cc45c8

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
sidebar_label: renderType
3+
title: renderType
4+
description: You can learn about renderType in the documentation of the DHTMLX JavaScript Booking library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Booking.
5+
---
6+
7+
# renderType
8+
9+
### Description
10+
11+
@short: Optional. Defines a type of rendering cards
12+
13+
The property helps optimize performance when working with a large number of cards.
14+
15+
### Usage
16+
17+
~~~jsx {}
18+
renderType?: "default" | "lazy";
19+
~~~
20+
21+
### Parameters
22+
23+
- `default` - renders all cards that should be displayed (set by default)
24+
- `lazy` - renders only the visual part of cards
25+
26+
### Example
27+
28+
~~~jsx {}
29+
new booking.Booking("#root", {
30+
data,
31+
renderType: "lazy",
32+
// other parameters
33+
});
34+
~~~
35+
36+
TBD!!!
37+
<iframe src="https://snippet.dhtmlx.com/?mode=result" frameborder="0" class="snippet_iframe" width="100%" height="600"></iframe>

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ module.exports = {
120120
"api/config/booking-infoshape",
121121
"api/config/booking-infotemplate",
122122
"api/config/booking-locale",
123+
"api/config/booking-rendertype",
123124
"api/config/booking-slotgap",
124125
"api/config/booking-slotsize",
125126
"api/config/booking-start",

0 commit comments

Comments
 (0)