Skip to content

Commit 2c600b7

Browse files
Integrated latest changes at 11-19-2024 4:30:28 PM
1 parent cb368d5 commit 2c600b7

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

ej2-react/code-snippet/schedule/resource-cs17/app/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ScheduleComponent, TimelineYear, ViewsDirective, ViewDirective, Resourc
44
import { resourceData } from './datasource';
55
const App = () => {
66
const eventSettings = { dataSource: resourceData };
7-
const group = { resources: ['Projects', 'Categories'] };
7+
const group = { resources: ['Owners'] };
88

99
const ownerData = [
1010
{ OwnerText: 'Nancy', Id: 1, OwnerColor: '#ffaa00' },
@@ -13,7 +13,7 @@ const App = () => {
1313
];
1414
return (<ScheduleComponent width='100%' height='550px' selectedDate={new Date(2018, 3, 1)} eventSettings={eventSettings}>
1515
<ViewsDirective>
16-
<ViewDirective option='TimelineYear' displayName='Horizontal Timeline Year' isSelected={true} />
16+
<ViewDirective option='TimelineYear' displayName='Horizontal Timeline Year' isSelected={true} group={group} />
1717
<ViewDirective option='TimelineYear' displayName='Vertical Timeline Year' orientation='Vertical' group={group} />
1818
</ViewsDirective>
1919
<ResourcesDirective>

ej2-react/code-snippet/schedule/resource-cs17/app/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { resourceData } from './datasource';
88

99
const App = () => {
1010
const eventSettings: EventSettingsModel = { dataSource: resourceData };
11-
const group: GroupModel = { resources: ['Projects', 'Categories'] };
11+
const group: GroupModel = { resources: ['Owners'] };
1212

1313
const ownerData: Object[] = [
1414
{ OwnerText: 'Nancy', Id: 1, OwnerColor: '#ffaa00' },
@@ -17,7 +17,7 @@ const App = () => {
1717
];
1818
return (<ScheduleComponent width='100%' height='550px' selectedDate={new Date(2018, 3, 1)} eventSettings={eventSettings} >
1919
<ViewsDirective>
20-
<ViewDirective option='TimelineYear' displayName='Horizontal Timeline Year' isSelected={true} />
20+
<ViewDirective option='TimelineYear' displayName='Horizontal Timeline Year' isSelected={true} group={group} />
2121
<ViewDirective option='TimelineYear' displayName='Vertical Timeline Year' orientation='Vertical' group={group} />
2222
</ViewsDirective>
2323
<ResourcesDirective>

ej2-react/code-snippet/schedule/views-cs20/app/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const App = () => {
88
return (<ScheduleComponent width='100%' height='550px' selectedDate={new Date(2018, 1, 15)} eventSettings={eventSettings}>
99
<ViewsDirective>
1010
<ViewDirective option='TimelineYear' displayName='Horizontal Timeline Year' isSelected={true} />
11+
<ViewDirective option='TimelineYear' displayName='Vertical Timeline Year' orientation='Vertical' />
1112
</ViewsDirective>
1213
<Inject services={[TimelineYear]} />
1314
</ScheduleComponent>);

ej2-react/code-snippet/schedule/views-cs20/app/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const App = () => {
1313
eventSettings={eventSettings}>
1414
<ViewsDirective>
1515
<ViewDirective option='TimelineYear' displayName='Horizontal Timeline Year' isSelected={true} />
16+
<ViewDirective option='TimelineYear' displayName='Vertical Timeline Year' orientation='Vertical'/>
1617
</ViewsDirective>
1718
<Inject services={[TimelineYear]} />
1819
</ScheduleComponent>)

ej2-react/schedule/views.md

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

263263
Similar to the day view, it 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.
264264

265-
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.
265+
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-react-schedule` package.
266266

267267
{% tabs %}
268268
{% highlight js tabtitle="index.jsx" %}
@@ -314,7 +314,7 @@ The following code example depicts how to display the timeline work week view on
314314
315315
### Timeline Month view
316316

317-
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.
317+
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-react-schedule` package.
318318

319319
{% tabs %}
320320
{% highlight js tabtitle="index.jsx" %}
@@ -336,7 +336,7 @@ A Timeline Month view displays the current month days along with its appointment
336336

337337
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.
338338

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

341341
{% tabs %}
342342
{% highlight js tabtitle="index.jsx" %}

0 commit comments

Comments
 (0)