Skip to content

Commit 74b2e35

Browse files
Integrated latest changes at 11-20-2024 4:30:46 AM
1 parent a9abcbb commit 74b2e35

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

ej2-vue/code-snippet/schedule/view-cs15/app-composition.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<div id='container'>
44
<ejs-schedule height='550px' width='100%' :selectedDate='selectedDate' :eventSettings='eventSettings'>
55
<e-views>
6-
<e-view option='TimelineYear' displayName='Horizontal Timeline Year'></e-view>
6+
<e-view option='TimelineYear' displayName='Horizontal Timeline Year' isSelected=true></e-view>
7+
<e-view option='TimelineYear' displayName='Vertical Timeline Year'></e-view>
78
</e-views>
89
</ejs-schedule>
910
</div>

ej2-vue/code-snippet/schedule/view-cs15/app.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<div id='container'>
44
<ejs-schedule height='550px' width='100%' :selectedDate='selectedDate' :eventSettings='eventSettings'>
55
<e-views>
6-
<e-view option='TimelineYear' displayName='Horizontal Timeline Year'></e-view>
6+
<e-view option='TimelineYear' displayName='Horizontal Timeline Year' isSelected=true></e-view>
7+
<e-view option='TimelineYear' displayName='Vertical Timeline Year'></e-view>
78
</e-views>
89
</ejs-schedule>
910
</div>

ej2-vue/code-snippet/schedule/view-cs15/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ new Vue({
1313
<div id='container'>
1414
<ejs-schedule height='550px' width='100%' :selectedDate='selectedDate' :eventSettings='eventSettings'>
1515
<e-views>
16-
<e-view option='TimelineYear' displayName='Horizontal Timeline Year'></e-view>
16+
<e-view option='TimelineYear' displayName='Horizontal Timeline Year' isSelected=true></e-view>
17+
<e-view option='TimelineYear' displayName='Vertical Timeline Year'></e-view>
1718
</e-views>
1819
</ejs-schedule>
1920
</div>

ej2-vue/schedule/views.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ The following code example shows how to hide the weekend days on `MonthAgenda` v
216216

217217
Similar to the day view, timeline day view shows a single day with all its appointments where the time slots are displayed horizontally. By default, the cell height adjusts as per the height set to Scheduler. When the number of appointments exceeds the visible area of the cells, the `+ more` text indicator will be displayed at the bottom to denote the presence of few more appointments in that time range.
218218

219-
To make use of the timeline views (Timeline Day, Timeline Week and Timeline Work Week) on Scheduler, import and inject the module `TimelineViews` from the `ej2-schedule` package.
219+
To make use of the timeline views (Timeline Day, Timeline Week and Timeline Work Week) on Scheduler, import and inject the module `TimelineViews` from the `ej2-vue-schedule` package.
220220

221221
{% tabs %}
222222
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
@@ -259,7 +259,7 @@ The following code example depicts how to display the timeline work week view on
259259
260260
### Timeline Month view
261261

262-
A Timeline Month view displays the current month days along with its appointments. To make use of the timeline Month view on Scheduler, import and inject `TimelineMonth` module from the `ej2-schedule` package.
262+
A Timeline Month view displays the current month days along with its appointments. To make use of the timeline Month view on Scheduler, import and inject `TimelineMonth` module from the `ej2-vue-schedule` package.
263263

264264
{% tabs %}
265265
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
@@ -278,7 +278,7 @@ A Timeline Month view displays the current month days along with its appointment
278278

279279
In Timeline Year view, each row depicts a single resource. Whereas in the vertical view, each resource is grouped parallelly as columns. Here, the resource grouping follows the tree-view like hierarchical grouping structure and can contain any level of child resources.
280280

281-
To make use of the timeline Year view on Scheduler, import and inject `TimelineYear` module from the `ej2-schedule` package.
281+
To make use of the timeline Year view on Scheduler, import and inject `TimelineYear` module from the `ej2-vue-schedule` package.
282282

283283
{% tabs %}
284284
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
@@ -303,9 +303,9 @@ The following code example depicts how to group the multiple resources on Timeli
303303
<div id='app'>
304304
<div id='container'>
305305
<ejs-schedule id='Schedule' width='100%' height='550px' :eventSettings='eventSettings'
306-
:selectedDate='selectedDate' :currentView='currentView'>
306+
:selectedDate='selectedDate' :currentView='currentView' :group='group'>
307307
<e-views>
308-
<e-view option='TimelineYear' displayName='Horizontal Timeline Year' isSelected: true></e-view>
308+
<e-view option='TimelineYear' displayName='Horizontal Timeline Year' isSelected=true></e-view>
309309
<e-view option='TimelineYear' displayName='Vertical Timeline Year' orientation='Vertical'></e-view>
310310
</e-views>
311311
<e-resources>
@@ -336,6 +336,7 @@ const resourceDataSource = [
336336
{ OwnerText: 'Michael', Id: 3, OwnerColor: '#7499e1' }
337337
];
338338
const eventSettings = { dataSource: resourceData };
339+
const group = { resources: ['Owners'] };
339340

340341
provide('schedule', [TimelineYear]);
341342

@@ -359,9 +360,9 @@ provide('schedule', [TimelineYear]);
359360
<div id='app'>
360361
<div id='container'>
361362
<ejs-schedule id='Schedule' width='100%' height='550px' :eventSettings='eventSettings'
362-
:selectedDate='selectedDate' :currentView='currentView'>
363+
:selectedDate='selectedDate' :currentView='currentView' :group='group'>
363364
<e-views>
364-
<e-view option='TimelineYear' displayName='Horizontal Timeline Year' isSelected: true></e-view>
365+
<e-view option='TimelineYear' displayName='Horizontal Timeline Year' isSelected=true></e-view>
365366
<e-view option='TimelineYear' displayName='Vertical Timeline Year' orientation='Vertical'></e-view>
366367
</e-views>
367368
<e-resources>
@@ -400,7 +401,10 @@ export default {
400401
{ OwnerText: 'Steven', Id: 2, OwnerColor: '#f8a398' },
401402
{ OwnerText: 'Michael', Id: 3, OwnerColor: '#7499e1' }
402403
],
403-
eventSettings: { dataSource: resourceData }
404+
eventSettings: { dataSource: resourceData },
405+
group: {
406+
resources: ['Owners']
407+
},
404408
}
405409
},
406410
provide: {

0 commit comments

Comments
 (0)