diff --git a/docs/integrations/vue/howtostart-vue.md b/docs/integrations/vue/howtostart-vue.md index 05853bb4..3b682756 100644 --- a/docs/integrations/vue/howtostart-vue.md +++ b/docs/integrations/vue/howtostart-vue.md @@ -117,34 +117,58 @@ To display Scheduler on the page, we need to set the container to render the com ~~~html title="Scheduler.vue" - + + ~~~ To make the Scheduler container occupy the entire space of the body, you need to remove the default -styles from the ***main.css*** file located in the ***src/assets*** folder and add the following one: - +styles add the following one: -~~~css title="src/assets/main.css" -#app { +~~~css +body, #app { margin: 0; padding: 0; height: 100%; @@ -157,19 +181,23 @@ styles from the ***main.css*** file located in the ***src/assets*** folder and a Now it's time to add the component into our app. Open ***src/App.vue*** and use the Scheduler component instead of the default content by inserting the code below: - ~~~html title="src/App.vue" - + + ~~~ After that, when we start the app, we should see an empty Scheduler on a page: @@ -181,7 +209,7 @@ After that, when we start the app, we should see an empty Scheduler on a page: To add data into the Scheduler, we need to provide a data set. Let's create the ***data.js*** file in the ***src/*** directory and add some data into it: -~~~js title="src/data.js" +~~~js title="src/data.ts" export function getData() { const data = [ { @@ -205,22 +233,13 @@ We should [pass props (our data)](https://vuejs.org/guide/components/props.html) ~~~html title="App.vue" - ~~~ @@ -228,28 +247,50 @@ And then use props in the **scheduler.parse()** method in the Scheduler componen ~~~html title="Scheduler.vue" - ~~~