From 19b9eee548b1a8746294505eb43028bc4fa7a832 Mon Sep 17 00:00:00 2001 From: Serhii Pylypchuk Date: Mon, 26 Aug 2024 14:15:59 +0400 Subject: [PATCH] [update] Angular and React integration guides (styles) --- docs/guides/integration_with_angular.md | 2 -- docs/guides/integration_with_react.md | 26 ++++++++++++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/docs/guides/integration_with_angular.md b/docs/guides/integration_with_angular.md index f53438b..4758405 100644 --- a/docs/guides/integration_with_angular.md +++ b/docs/guides/integration_with_angular.md @@ -127,8 +127,6 @@ body { /* specify styles for the Event Calendar container */ .widget { - position: relative; - width: 100%; height: 100%; } ~~~ diff --git a/docs/guides/integration_with_react.md b/docs/guides/integration_with_react.md index 741229d..603b600 100644 --- a/docs/guides/integration_with_react.md +++ b/docs/guides/integration_with_react.md @@ -105,7 +105,27 @@ export default function EventCalendarComponent(props) { }; }, []); - return
; + return
; +} +~~~ + +#### Adding styles + +To display Event Calendar correctly, you need to provide the corresponding styles. You can use the **index.css** file to specify important styles for Event Calendar and its container: + +~~~css title="index.css" +/* specify styles for initial page */ +html, +body, +#root { + height: 100%; + padding: 0; + margin: 0; +} + +/* specify styles for the Event Calendar container */ +.widget { + height: 100%; } ~~~ @@ -180,7 +200,7 @@ export default function EventCalendarComponent(props) { } }, []); - return
; + return
; } ~~~ @@ -207,7 +227,7 @@ export default function EventCalendarComponent(props) { } }, []); - return
; + return
; } ~~~