Skip to content

Commit 062c220

Browse files
committed
[dev] moved layout integration from legacy to others
1 parent fde5026 commit 062c220

19 files changed

Lines changed: 126 additions & 24 deletions

File tree

docker/redirects.conf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@
473473
/day_view.html /scheduler/views/day/
474474
/day_view_templates.html /scheduler/views/day-view-templates/
475475
/dhtmlx_components_integration.html /scheduler/integrations/legacy/dhtmlx-dnd/
476-
/dhxlayout_integration.html /scheduler/integrations/legacy/dhxlayout-integration/
476+
/dhxlayout_integration.html /scheduler/integrations/other/dhxlayout-integration/
477477
/editions_comparison.html /scheduler/guides/editions-comparison/
478478
/event_object_operations.html /scheduler/guides/event-object-operations/
479479
/excel.html /scheduler/export/excel/
@@ -1060,7 +1060,7 @@
10601060
/de/day_view.html /scheduler/de/views/day/
10611061
/de/day_view_templates.html /scheduler/de/views/day-view-templates/
10621062
/de/dhtmlx_components_integration.html /scheduler/de/integrations/legacy/dhtmlx-dnd/
1063-
/de/dhxlayout_integration.html /scheduler/de/integrations/legacy/dhxlayout-integration/
1063+
/de/dhxlayout_integration.html /scheduler/de/integrations/other/dhxlayout-integration/
10641064
/de/editions_comparison.html /scheduler/de/guides/editions-comparison/
10651065
/de/event_object_operations.html /scheduler/de/guides/event-object-operations/
10661066
/de/excel.html /scheduler/de/export/excel/
@@ -1647,7 +1647,7 @@
16471647
/ru/day_view.html /scheduler/ru/views/day/
16481648
/ru/day_view_templates.html /scheduler/ru/views/day-view-templates/
16491649
/ru/dhtmlx_components_integration.html /scheduler/ru/integrations/legacy/dhtmlx-dnd/
1650-
/ru/dhxlayout_integration.html /scheduler/ru/integrations/legacy/dhxlayout-integration/
1650+
/ru/dhxlayout_integration.html /scheduler/ru/integrations/other/dhxlayout-integration/
16511651
/ru/editions_comparison.html /scheduler/ru/guides/editions-comparison/
16521652
/ru/event_object_operations.html /scheduler/ru/guides/event-object-operations/
16531653
/ru/excel.html /scheduler/ru/export/excel/
@@ -2236,7 +2236,7 @@
22362236
/ko/day_view.html /scheduler/ko/views/day/
22372237
/ko/day_view_templates.html /scheduler/ko/views/day-view-templates/
22382238
/ko/dhtmlx_components_integration.html /scheduler/ko/integrations/legacy/dhtmlx-dnd/
2239-
/ko/dhxlayout_integration.html /scheduler/ko/integrations/legacy/dhxlayout-integration/
2239+
/ko/dhxlayout_integration.html /scheduler/ko/integrations/other/dhxlayout-integration/
22402240
/ko/editions_comparison.html /scheduler/ko/guides/editions-comparison/
22412241
/ko/event_object_operations.html /scheduler/ko/guides/event-object-operations/
22422242
/ko/excel.html /scheduler/ko/export/excel/
@@ -2822,7 +2822,7 @@
28222822
/zh/day_view.html /scheduler/zh/views/day/
28232823
/zh/day_view_templates.html /scheduler/zh/views/day-view-templates/
28242824
/zh/dhtmlx_components_integration.html /scheduler/zh/integrations/legacy/dhtmlx-dnd/
2825-
/zh/dhxlayout_integration.html /scheduler/zh/integrations/legacy/dhxlayout-integration/
2825+
/zh/dhxlayout_integration.html /scheduler/zh/integrations/other/dhxlayout-integration/
28262826
/zh/editions_comparison.html /scheduler/zh/guides/editions-comparison/
28272827
/zh/event_object_operations.html /scheduler/zh/guides/event-object-operations/
28282828
/zh/excel.html /scheduler/zh/export/excel/
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
title: "Integration with dhtmlxLayout"
3+
sidebar_label: "Integration with dhtmlxLayout"
4+
---
5+
6+
# Integration with dhtmlxLayout
7+
8+
:::warning
9+
The described functionality is deprecated and is no longer maintained.
10+
:::
11+
12+
A good way to place [multiple schedulers](guides/multiple-per-page.md) on the page is using dhtmlxLayout. It not only provides a beautiful frame, but also ensures correct interacting
13+
with other elements on the page and acting according to the page size changes.
14+
15+
:::note
16+
Note that dhtmlxLayout is not a part of the dhtmlxScheduler library.
17+
There are two versions of Layout you can choose from, depending on the version of the dhtmlxSuite library.
18+
:::
19+
20+
## dhtmlxSuite v5+
21+
22+
In this version dhtmlxLayout can be used as a separate product or as a part of the dhtmlxSuite library. To use dhtmlxLayout v5.X in your application, you should
23+
[purchase the license](https://dhtmlx.com/docs/products/dhtmlxSuite5/).
24+
25+
26+
**To attach a dhtmlxScheduler instance to a layout cell**, use the [attachScheduler()](https://docs.dhtmlx.com/api__dhtmlxcell_attachscheduler.html) method.
27+
28+
**Note**, attaching scheduler to a cell automatically initializes it. So, configure scheduler before placing it into the layout.
29+
30+
~~~js
31+
function init() {
32+
var dhxLayout = new dhtmlXLayoutObject(document.body, "2U");
33+
34+
sched1 = Scheduler.getSchedulerInstance();
35+
sched1.config.multi_day = true;
36+
dhxLayout.cells("a").attachScheduler(new Date(2019,05,30),"week",null,sched1);
37+
sched1.load("/data/units")
38+
39+
sched2 = Scheduler.getSchedulerInstance();
40+
dhxLayout.cells("b").attachScheduler(new Date(2019,05,30),"month",null,sched2);
41+
sched2.load("/data/units")
42+
}
43+
~~~
44+
45+
46+
[Integration with dhtmlxLayout (dhx_terrace skin, Suite v5.1)](https://docs.dhtmlx.com/scheduler/samples/10_integration/05_dhtmlxlayout_terrace.html)
47+
48+
49+
## dhtmlxSuite v6+
50+
51+
Starting from dhtmlxSuite 6.0, dhtmlxLayout can't be obtained separately from the whole Suite library.
52+
If you're going to use this approach, you should purchase the license of
53+
the [Suite 6.X library](https://dhtmlx.com/docs/products/dhtmlxSuite/#licensing).
54+
55+
dhtmlxScheduler of [version 5.3](whats-new.md#53) and newer implements a common View interface used in dhtmlxSuite v6+ and can be
56+
[attached to any cell directly](https://docs.dhtmlx.com/suite/layout/api/cell/layout_cell_attach_method/):
57+
58+
~~~js
59+
// create and configure the scheduler instance
60+
scheduler.config.header = [
61+
"day",
62+
"week",
63+
"month",
64+
"date",
65+
"prev",
66+
"today",
67+
"next"
68+
];
69+
scheduler.config.multi_day = true;
70+
71+
// after the scheduler is attached, onSchedulerReady will be fired
72+
scheduler.attachEvent("onSchedulerReady", function () {
73+
requestAnimationFrame(function(){
74+
// here you can set the initial view and date and load the data
75+
scheduler.setCurrentView(new Date(2017,5,3), "week");
76+
scheduler.load("../common/events.json");
77+
});
78+
79+
});
80+
81+
const layout = new dhx.Layout("layout", {
82+
rows: [{
83+
id: "scheduler-cell",
84+
header: "Appointment Scheduler",
85+
html:"<div></div>"
86+
}]
87+
});
88+
layout.cell("scheduler-cell").attach(scheduler);
89+
~~~
90+
91+
### Pay attention
92+
93+
- Note, that `dhtmlxSuite Layout` is asynchronous, the scheduler won't be initialized right after the `.attach` call.
94+
- You'll need to capture "onSchedulerReady" for any post-initialization settings.
95+
- Currently **there is no way to specify scheduler markup when it's used together with dhtmlxSuite v6+**,
96+
which means you'll need to use the [header](api/config/header.md) config to specify controls of the navigation panel.

docs/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ This update changes behavior of some parts of the component. While they shouldn'
610610

611611
1. [RTL support](guides/rtl-mode.md)
612612
2. [Improved mobile responsiveness](guides/touch-support.md)
613-
3. [Integration with DHTMLX Suite 6 Layout](integrations/legacy/dhxlayout-integration.md#dhtmlxsuite-v6)
613+
3. [Integration with DHTMLX Suite 6 Layout](integrations/other/dhxlayout-integration.md#dhtmlxsuite-v6)
614614

615615
### Updates
616616

i18n/de/docusaurus-plugin-content-docs/current/guides/guides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Werfen Sie einen Blick auf die [Funktionen der Standard- und PRO-Versionen](guid
6262
<td class='topic_description'>Behandelt wichtige Themen rund um Datumsangaben im Scheduler, darunter das Konvertieren von Datumswerten in Zeichenketten und zurück sowie die zulässigen Zeichen in Datumsformaten.</td>
6363
</tr>
6464
<tr>
65-
<td id="styling" class='topics'><h4> Integrationen </h4> <ul id="styling_sublist"> <li>[Popup-Nachrichten und Modale Fenster](guides/popups-and-modals.md)</li> <li>[Verwendung des Schedulers mit TypeScript](guides/scheduler-typescript.md)</li> <li>[jQuery-Integration](integrations/other/jquery-integration.md)</li> <li>[Integration mit dhtmlxLayout](integrations/legacy/dhxlayout-integration.md)</li> </ul></td>
65+
<td id="styling" class='topics'><h4> Integrationen </h4> <ul id="styling_sublist"> <li>[Popup-Nachrichten und Modale Fenster](guides/popups-and-modals.md)</li> <li>[Verwendung des Schedulers mit TypeScript](guides/scheduler-typescript.md)</li> <li>[jQuery-Integration](integrations/other/jquery-integration.md)</li> <li>[Integration mit dhtmlxLayout](integrations/other/dhxlayout-integration.md)</li> </ul></td>
6666
<td class='topic_description'>Beschreibt die verfügbaren Möglichkeiten zur Integration des Schedulers mit Drittanbieter-Frameworks.</td>
6767
</tr>
6868
<tr>

i18n/de/docusaurus-plugin-content-docs/current/guides/multiple-per-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@ Wenn Sie ein Paket verwenden, das keine mehreren Scheduler-Instanzen unterstütz
163163

164164
## Verwandte Artikel
165165

166-
- [Integration mit dhtmlxLayout](integrations/legacy/dhxlayout-integration.md)
166+
- [Integration mit dhtmlxLayout](integrations/other/dhxlayout-integration.md)

i18n/de/docusaurus-plugin-content-docs/current/guides/scheduler-integrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ sidebar_label: "Scheduler-Integrationen"
77

88
- [Verwendung des Schedulers mit TypeScript](guides/scheduler-typescript.md)
99
- [jQuery-Integration](integrations/other/jquery-integration.md)
10-
- [Integration mit dhtmlxLayout](integrations/legacy/dhxlayout-integration.md)
10+
- [Integration mit dhtmlxLayout](integrations/other/dhxlayout-integration.md)
1111
- [Integration mit Bootstrap](integrations/other/bootstrap.md)

i18n/de/docusaurus-plugin-content-docs/current/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ Dieses Update passt das Verhalten einiger Komponenten an. Es werden keine Brüch
534534

535535
1. [RTL-Unterstützung](guides/rtl-mode.md) hinzugefügt.
536536
2. Verbesserte mobile Responsivität ([[Mobile Responsive Scheduler](guides/touch-support.md)]).
537-
3. Integration mit DHTMLX Suite 6 Layout ([Integration mit dhtmlxLayout](integrations/legacy/dhxlayout-integration.md#dhtmlxsuite-v6).
537+
3. Integration mit DHTMLX Suite 6 Layout ([Integration mit dhtmlxLayout](integrations/other/dhxlayout-integration.md#dhtmlxsuite-v6).
538538

539539
### Updates
540540

i18n/ko/docusaurus-plugin-content-docs/current/guides/guides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dhtmlxScheduler 라이브러리의 [Standard 및 PRO 버전에서 제공되는
6262
<td class='topic_description'>Scheduler에서 날짜를 다루는 중요한 주제(문자열 변환, 날짜 포맷에서 허용되는 문자 등)를 다룹니다.</td>
6363
</tr>
6464
<tr>
65-
<td id="styling" class='topics'><h4> 통합(Integration) </h4> <ul id="styling_sublist"> <li>["Popup Messages and Modal Boxes"](guides/popups-and-modals.md)</li> <li>["타입스크립트와 함께 Scheduler 사용하기"](guides/scheduler-typescript.md)</li> <li>["jQuery 통합"](integrations/other/jquery-integration.md)</li> <li>["dhtmlxLayout와의 통합"](integrations/legacy/dhxlayout-integration.md)</li> </ul></td>
65+
<td id="styling" class='topics'><h4> 통합(Integration) </h4> <ul id="styling_sublist"> <li>["Popup Messages and Modal Boxes"](guides/popups-and-modals.md)</li> <li>["타입스크립트와 함께 Scheduler 사용하기"](guides/scheduler-typescript.md)</li> <li>["jQuery 통합"](integrations/other/jquery-integration.md)</li> <li>["dhtmlxLayout와의 통합"](integrations/other/dhxlayout-integration.md)</li> </ul></td>
6666
<td class='topic_description'>Scheduler를 타사 프레임워크와 통합할 수 있는 옵션을 설명합니다.</td>
6767
</tr>
6868
<tr>

i18n/ko/docusaurus-plugin-content-docs/current/guides/multiple-per-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ dp.destructor();
164164
## 관련 문서
165165

166166

167-
- ["dhtmlxLayout와의 통합"](integrations/legacy/dhxlayout-integration.md)
167+
- ["dhtmlxLayout와의 통합"](integrations/other/dhxlayout-integration.md)

i18n/ko/docusaurus-plugin-content-docs/current/guides/scheduler-integrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ sidebar_label: "스케줄러 통합"
77

88
- ["타입스크립트와 함께 Scheduler 사용하기"](guides/scheduler-typescript.md)
99
- ["jQuery 통합"](integrations/other/jquery-integration.md)
10-
- ["dhtmlxLayout와의 통합"](integrations/legacy/dhxlayout-integration.md)
10+
- ["dhtmlxLayout와의 통합"](integrations/other/dhxlayout-integration.md)
1111
- ["Bootstrap과의 통합"](integrations/other/bootstrap.md)

0 commit comments

Comments
 (0)