Skip to content

Commit bfc04d1

Browse files
Integrated latest changes at 03-31-2023 12:19:45 PM
1 parent 8f5a74c commit bfc04d1

File tree

93 files changed

+167
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+167
-20
lines changed

ej2-angular/code-snippet/chart/series/rangesteparea-cs1/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BrowserModule } from '@angular/platform-browser';
33
import { AppComponent } from './app.component';
44
import { ChartModule, ChartAllModule } from '@syncfusion/ej2-angular-charts';
55
import { AreaSeriesService, RangeAreaSeriesService, StepAreaSeriesService, StackingAreaSeriesService,
6-
DateTimeService, CategoryService, MultiColoredAreaSeriesService, StackingStepAreaSeriesService, SplineRangeAreaSeriesService } from '@syncfusion/ej2-angular-charts';
6+
DateTimeService, CategoryService, MultiColoredAreaSeriesService, StackingStepAreaSeriesService, SplineRangeAreaSeriesService, RangeStepAreaSeriesService } from '@syncfusion/ej2-angular-charts';
77

88
/**
99
* Module

ej2-angular/code-snippet/chart/user-interaction/centerlable-cs1/app/app.component.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,23 @@ import { Component, OnInit } from '@angular/core';
44
@Component({
55
selector: 'app-container',
66
template:
7-
`<ejs-accumulationchart id="chart-container" [legendSettings]='legendSettings'>
7+
`<ejs-accumulationchart id="chart-container" [legendSettings]='legendSettings' [centerLabel]='centerLabel'>
88
<e-accumulation-series-collection>
9-
<e-accumulation-series [dataSource]='centerLabel' xName='x' yName='y' innerRadius='65%' [centerLabel]='centerLabel'></e-accumulation-series>
9+
<e-accumulation-series [dataSource]='centerLabelData' xName='x' yName='y' innerRadius='65%'></e-accumulation-series>
1010
</e-accumulation-series-collection>
1111
</ejs-accumulationchart>`
1212
})
1313
export class AppComponent implements OnInit {
1414
public piedata: Object[];
1515
public legendSettings: Object;
16-
public centerLabel: Object = [
17-
{ x: 'Development', y: [22, 22, 23, 25, 25, 25, 26, 27, 27, 28, 28, 29, 30, 32, 34, 32, 34, 36, 35, 38] },
18-
{ x: 'Testing', y: [22, 33, 23, 25, 26, 28, 29, 30, 34, 33, 32, 31, 50] },
19-
{ x: 'HR', y: [22, 24, 25, 30, 32, 34, 36, 38, 39, 41, 35, 36, 40, 56] },
20-
{ x: 'Finance', y: [26, 27, 28, 30, 32, 34, 35, 37, 35, 37, 45] },
21-
{ x: 'R&D', y: [26, 27, 29, 32, 34, 35, 36, 37, 38, 39, 41, 43, 58] },
22-
{ x: 'Sales', y: [27, 26, 28, 29, 29, 29, 32, 35, 32, 38, 53] },
23-
{ x: 'Inventory', y: [21, 23, 24, 25, 26, 27, 28, 30, 34, 36, 38] },
24-
{ x: 'Graphics', y: [26, 28, 29, 30, 32, 33, 35, 36, 52] },
25-
{ x: 'Training', y: [28, 29, 30, 31, 32, 34, 35, 36] }
16+
public centerLabel: Object;
17+
public centerLabelData: Object = [
18+
{ x: 'Chrome', y: 61.3, text: 'Chrome: 61.3%' },
19+
{ x: 'Safari', y: 24.6, text: 'Safari: 24.6%' },
20+
{ x: 'Edge', y: 5.0, text: 'Edge: 5.00%' },
21+
{ x: 'Samsung Internet', y: 2.7, text: 'Samsung Internet: 2.7%' },
22+
{ x: 'Firefox', y: 2.6, text: 'Firefox: 2.6%' },
23+
{ x: 'Others', y: 3.6, text: 'Others: 3.6%' }
2624
];
2725
ngOnInit(): void {
2826
this.legendSettings = {

ej2-angular/code-snippet/chart/user-interaction/centerlable-cs2/app/app.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ import { Component, OnInit } from '@angular/core';
44
@Component({
55
selector: 'app-container',
66
template:
7-
`<ejs-accumulationchart id="chart-container" [legendSettings]='legendSettings'>
7+
`<ejs-accumulationchart id="chart-container" [legendSettings]='legendSettings' [centerLabel]='centerLabel'>
88
<e-accumulation-series-collection>
9-
<e-accumulation-series [dataSource]='centerLabel' xName='x' yName='y' innerRadius='65%' [centerLabel]='centerLabel'></e-accumulation-series>
9+
<e-accumulation-series [dataSource]='centerLabelData' xName='x' yName='y' innerRadius='65%'></e-accumulation-series>
1010
</e-accumulation-series-collection>
1111
</ejs-accumulationchart>`
1212
})
1313
export class AppComponent implements OnInit {
1414
public piedata: Object[];
1515
public legendSettings: Object;
16-
public centerLabel: Object = [
16+
public centerLabel: Object;
17+
public centerLabelData: Object = [
1718
{ x: 'Chrome', y: 61.3, text: 'Chrome: 61.3%' },
1819
{ x: 'Safari', y: 24.6, text: 'Safari: 24.6%' },
1920
{ x: 'Edge', y: 5.0, text: 'Edge: 5.00%' },

ej2-angular/code-snippet/chart/user-interaction/centerlable-cs3/app/app.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ import { Component, OnInit } from '@angular/core';
55
@Component({
66
selector: 'app-container',
77
template:
8-
`<ejs-accumulationchart id="chart-container" [legendSettings]='legendSettings'>
8+
`<ejs-accumulationchart id="chart-container" [legendSettings]='legendSettings' [centerLabel]='centerLabel'>
99
<e-accumulation-series-collection>
10-
<e-accumulation-series [dataSource]='centerLabel' xName='x' yName='y' innerRadius='65%' [centerLabel]='centerLabel'></e-accumulation-series>
10+
<e-accumulation-series [dataSource]='centerLabelData' xName='x' yName='y' innerRadius='65%' ></e-accumulation-series>
1111
</e-accumulation-series-collection>
1212
</ejs-accumulationchart>`
1313
})
1414
export class AppComponent implements OnInit {
1515
public piedata: Object[];
1616
public legendSettings: Object;
17-
public centerLabel: Object= [
17+
public centerLabel: Object;
18+
public centerLabelData: Object= [
1819
{ x: 'Chrome', y: 61.3, text: 'Chrome: 61.3%' },
1920
{ x: 'Safari', y: 24.6, text: 'Safari: 24.6%' },
2021
{ x: 'Edge', y: 5.0, text: 'Edge: 5.00%' },
@@ -28,6 +29,7 @@ export class AppComponent implements OnInit {
2829
};
2930
this.centerLabel = {
3031
text : 'Mobile<br>Browsers<br>Statistics',
32+
hoverTextFormat: '${point.x} <br> Browser Share <br> ${point.y}%',
3133
textStyle:{
3234
fontWeight: '900',
3335
size: '15px',

ej2-angular/schedule/appointments.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ In this example, a recurring instance that displays on the date 30th Jan 2018 an
186186

187187
{% previewsample "page.domainurl/code-snippet/schedule/default-cs7" %}
188188

189+
![Editing Events](images/schedule-editing-events.png)
190+
189191
### Recurrence options and rules
190192

191193
Events can be repeated on a daily, weekly, monthly or yearly basis based on the recurrence rule which accepts the string value. The following details should be assigned to the `recurrenceRule` property to generate the recurring instances.
@@ -383,6 +385,8 @@ By default, the scheduler will render the overlapping events based on the start
383385

384386
{% previewsample "page.domainurl/code-snippet/schedule/default-cs11" %}
385387

388+
![Overlapping Events](images/schedule-overlapping-events.png)
389+
386390
## Drag and drop appointments
387391

388392
Appointments can be rescheduled to any time by dragging and dropping them onto the desired location. To work with drag and drop functionality, it is necessary to inject the module `DragAndDrop` and make sure that `allowDragAndDrop` is set to true on Scheduler. In mobile mode, you can drag and drop the events by tap holding an event and dropping them on to the desired location.
@@ -812,6 +816,8 @@ It is possible to block a set of dates or a particular time ranges on the Schedu
812816

813817
{% previewsample "page.domainurl/code-snippet/schedule/event-cs11" %}
814818

819+
![Block Date and Time](images/schedule-block-events.png)
820+
815821
Block events can also be defined to repeat on several days as shown in the following code example.
816822

817823
{% tabs %}
@@ -828,6 +834,8 @@ Block events can also be defined to repeat on several days as shown in the follo
828834

829835
{% previewsample "page.domainurl/code-snippet/schedule/event-cs12" %}
830836

837+
![Block Several Date and Time](images/schedule-multiple-block-events.png)
838+
831839
## Readonly
832840

833841
An interaction with the appointments of Scheduler can be enabled/disabled using the `readonly` property. With this property enabled, you can simply navigate between the Scheduler dates, views and can be able to view the appointment details in the quick info window. Most importantly, the users are not allowed to perform any CRUD actions on Scheduler, when this property is set to true. By default, it is set as `false`.
@@ -922,6 +930,8 @@ We can show more indicator if more than one appointment is available in a same c
922930

923931
{% previewsample "page.domainurl/code-snippet/schedule/event-cs17" %}
924932

933+
![Differentiate Past Time Events](images/schedule-appointments-entirecell.png)
934+
925935
## Display tooltip for appointments
926936

927937
The tooltip shows the Scheduler appointment's information in a formatted style by making use of the tooltip related options.
@@ -944,6 +954,8 @@ The tooltip can be displayed for appointments by setting `true` to the `enableTo
944954

945955
{% previewsample "page.domainurl/code-snippet/schedule/event-cs18" %}
946956

957+
![Built-in Tooltip](images/schedule-appointments-tooltip.png)
958+
947959
### Customizing event tooltip using template
948960

949961
After enabling the default tooltip, it is possible to customize the display of needed event information on tooltip by making use of the `tooltipTemplate` option within the `eventSettings`.
@@ -965,6 +977,8 @@ After enabling the default tooltip, it is possible to customize the display of n
965977

966978
{% previewsample "page.domainurl/code-snippet/schedule/tooltip-cs1" %}
967979

980+
![Tooltip](images/schedule-appointments-tooltip-template.png)
981+
968982
> All the field names that are mapped from the Scheduler dataSource to the appropriate field properties such as subject, description, location, startTime and endTime within the `eventSettings` can be accessed within the template.
969983
970984
## Appointment filtering

ej2-angular/schedule/cell-customization.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ The height and width of the Scheduler cells can be customized either to increase
3030

3131
{% previewsample "page.domainurl/code-snippet/schedule/default-cs21" %}
3232

33+
![Cell Dimensions in Vertical Views](images/schedule-celldimension-verticalviews.png)
34+
3335
## Check for cell availability
3436

3537
You can check whether the given time range slots are available for event creation or already occupied by other events using the `isSlotAvailable` method. In the following code example, if a specific time slot already contains an appointment, then no more appointments can be added to that cell.
@@ -70,6 +72,8 @@ The `cellTemplate` option accepts the template string and is used to customize t
7072

7173
{% previewsample "page.domainurl/code-snippet/schedule/default-cs23" %}
7274

75+
![Using CellTemplate](images/schedule-celldimension-celltemplate.png)
76+
7377
### Using renderCell event
7478

7579
An alternative to `cellTemplate` is the `renderCell` event, which can also be used to customize the cells with appropriate images or formatted text values.

ej2-angular/schedule/context-menu.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ The deletion of appointments can be done by using the `deleteEvent` public metho
3535

3636
{% previewsample "page.domainurl/code-snippet/schedule/context-menu-cs1" %}
3737

38+
![Context Menu](images/schedule-contextmenu.png)
39+
3840
> You can refer to our [Angular Scheduler](https://www.syncfusion.com/angular-ui-components/angular-scheduler) feature tour page for its groundbreaking feature representations. You can also explore our [Angular Scheduler example](https://ej2.syncfusion.com/angular/demos/#/material/schedule/overview) to knows how to present and manipulate data.

ej2-angular/schedule/editor-template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ You can change the header title and the text of buttons displayed at the footer
3838

3939
{% previewsample "page.domainurl/code-snippet/schedule/editor-window-cs1" %}
4040

41+
![Editing Window with Custom Local Words](images/schedule-editing-local-word.png)
42+
4143
### How to change the label text of default editor fields
4244

4345
To change the default labels such as Subject, Location and other field names in the editor window, make use of the `title` property available within the field option of `eventSettings`.
@@ -56,6 +58,8 @@ To change the default labels such as Subject, Location and other field names in
5658

5759
{% previewsample "page.domainurl/code-snippet/schedule/editor-window-cs2" %}
5860

61+
![Editor Window with Custom Label](images/schedule-custom-label.png)
62+
5963
### Field validation
6064

6165
It is possible to validate the required fields of the editor window from client-side before submitting it, by adding appropriate validation rules to each field. The appointment fields have been extended to accept both `string` and `object` type values. To perform validations, it is necessary to specify object values for the event fields.
@@ -74,6 +78,8 @@ It is possible to validate the required fields of the editor window from client-
7478

7579
{% previewsample "page.domainurl/code-snippet/schedule/editor-window-cs3" %}
7680

81+
![Editor window with Validation](images/schedule-validation.png)
82+
7783
> Applicable validation rules can be referred from [form validation](http://ej2.syncfusion.com/documentation/form-validator/#validation-rules) documentation.
7884
7985
### Add additional fields to the default editor
@@ -261,6 +267,8 @@ The resource field can be added within editor template with multiselect control
261267

262268
{% previewsample "page.domainurl/code-snippet/schedule/resource-field-cs1" %}
263269

270+
![Add Resource Options within Editor Template](images/schedule-custom-window-with-resource.png)
271+
264272
### How to add recurrence options within editor template
265273

266274
The following code example shows how to add recurrence options within the editor template by importing `RecurrenceEditor`.
@@ -279,6 +287,8 @@ The following code example shows how to add recurrence options within the editor
279287

280288
{% previewsample "page.domainurl/code-snippet/schedule/resource-field-cs2" %}
281289

290+
![Add Recurrence Options within Editor Template](images/schedule-custom-window-with-recurrence.png)
291+
282292
### Apply validations on editor template fields
283293

284294
In the following code example, validation has been added to the status field.
@@ -297,6 +307,8 @@ In the following code example, validation has been added to the status field.
297307

298308
{% previewsample "page.domainurl/code-snippet/schedule/resource-field-cs3" %}
299309

310+
![Editor Template with Validation](images/schedule-custom-window-validation.png)
311+
300312
### How to save the customized event editor using template
301313

302314
The **e-field** class is not added to each field defined within the template, so you should allow to set those field values externally by using the `popupClose` event.
@@ -455,6 +467,8 @@ The following code example shows how to disable the display of such popups while
455467

456468
{% previewsample "page.domainurl/code-snippet/schedule/editor-window-cs11" %}
457469

470+
![More Event Popup](images/schedule-more-event-popup.png)
471+
458472
### How to customize the popup that opens on more indicator
459473

460474
The following code example shows you how to customize the default more indicator popup in which number of events rendered count on the day has been shown in the header.

ej2-angular/schedule/exporting.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ The Scheduler allows you to export all its events into an Excel format file by u
3232

3333
{% previewsample "page.domainurl/code-snippet/schedule/excel-export-cs1" %}
3434

35+
![Excel Exporting](images/schedule-excel-export.png)
36+
3537
### Exporting with custom fields
3638

3739
By default, Scheduler exports all the default event fields that are mapped to it through the `eventSettings` property. To limit the number of fields on the exported excel file, it provides an option to export only the custom fields of the event data. To export such custom fields alone, define the required `fields` through the `ExportOptions` interface and pass it as argument to the `exportToExcel` method as shown in the following example. For example: `['Id', 'Subject', 'StartTime', 'EndTime', 'Location']`.
@@ -50,6 +52,8 @@ By default, Scheduler exports all the default event fields that are mapped to it
5052

5153
{% previewsample "page.domainurl/code-snippet/schedule/excel-export-cs2" %}
5254

55+
![Excel Exporting with custom Fields](images/schedule-excel-export-custom-fields.png)
56+
5357
### Exporting individual occurrences of a recurring series
5458

5559
By default, the Scheduler exports recurring events as a single data by exporting only its parent record into the excel file. If you want to export each individual occurrences of a recurring series appointment as separate records in an Excel file, define the `includeOccurrences` option as `true` through the `ExportOptions` interface and pass it as argument to the `exportToExcel` method. By default, the `includeOccurrences` option is set to `false`.
@@ -106,6 +110,8 @@ Using fields property, we can only export the defined fields into excel without
106110

107111
{% previewsample "page.domainurl/code-snippet/schedule/excel-export-cs5" %}
108112

113+
![Excel Exporting with custom header texts](images/schedule-excel-export-custom-header.png)
114+
109115
### Export with custom file name
110116

111117
By default, the Scheduler allows you to download the exported Excel file with a name `Schedule.xlsx`. It also provides an option to export the excel file with a custom file name, by defining the desired `fileName` through the `ExportOptions` interface and passing it as an argument to the `exportToExcel` method.

ej2-angular/schedule/header-bar.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ By default, the header bar holds the date and view navigation options, through w
3030

3131
{% previewsample "page.domainurl/code-snippet/schedule/header-bar-cs1" %}
3232

33+
![Hide Header Bar](images/schedule-hide-header-bar.png)
34+
3335
## Customizing header bar
3436

3537
Apart from the default date navigation and view options available on the header bar, you can add custom items into the Scheduler header bar by making use of the `actionBegin` event. Here, an employee image is added to the header bar, clicking on which will open the popup showing that person's short profile information.
@@ -66,6 +68,8 @@ By default, the header bar holds the view navigation options, through which the
6668

6769
{% previewsample "page.domainurl/code-snippet/schedule/default-cs38" %}
6870

71+
![Displaying Header Bar Popup](images/schedule-header-bar-popup.png)
72+
6973
> Refer [here](./resources/#adaptive-ui-in-desktop) to know more about adaptive UI in resources scheduler.
7074
7175
## Date header customization
@@ -90,6 +94,8 @@ The `dateHeaderTemplate` option is used to customize the date header cells of da
9094

9195
{% previewsample "page.domainurl/code-snippet/schedule/header-bar-cs3" %}
9296

97+
![Date Header Customization](images/schedule-customize-dateheader.png)
98+
9399
### Using renderCell event
94100

95101
In month view, the date header template is not applicable and therefore the same customization can be added beside the date text in month cells by making use of the `renderCell` event.

ej2-angular/schedule/header-rows.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ The following example shows the Scheduler displaying all the available header ro
4040

4141
{% previewsample "page.domainurl/code-snippet/schedule/default-cs39" %}
4242

43+
![Timeline Header Rows](images/schedule-headerrow-default.png)
44+
4345
## Display year and month rows in timeline views
4446

4547
To display the timeline Scheduler simply with year and month names alone, define the option `Year` and `Month` within the `headerRows` property.
@@ -58,6 +60,8 @@ To display the timeline Scheduler simply with year and month names alone, define
5860

5961
{% previewsample "page.domainurl/code-snippet/schedule/default-cs40" %}
6062

63+
![Display Year and Month rows in timeline views](images/schedule-headerrow-month-year.png)
64+
6165
## Display week numbers in timeline views
6266

6367
The week number can be displayed in a separate header row of the timeline Scheduler by setting `Week` option within `headerRows` property.
@@ -76,6 +80,8 @@ The week number can be displayed in a separate header row of the timeline Schedu
7680

7781
{% previewsample "page.domainurl/code-snippet/schedule/default-cs41" %}
7882

83+
![Display Week numbers in timeline views](images/schedule-headerrow-weeknumber.png)
84+
7985
## Timeline view displaying dates of a complete year
8086

8187
It is possible to display a complete year in a timeline view by setting `interval` value as 12 and defining **TimelineMonth** view option within the `views` property of Scheduler.
@@ -94,6 +100,8 @@ It is possible to display a complete year in a timeline view by setting `interva
94100

95101
{% previewsample "page.domainurl/code-snippet/schedule/default-cs42" %}
96102

103+
![Display dates of a complete year in timeline views](images/schedule-headerrow-dates.png)
104+
97105
## Customizing the header rows using template
98106

99107
You can customize the text of the header rows and display any images or formatted text on each individual header rows using the built-in `template` option available within the `headerRows` property.
@@ -112,4 +120,6 @@ You can customize the text of the header rows and display any images or formatte
112120

113121
{% previewsample "page.domainurl/code-snippet/schedule/default-cs43" %}
114122

123+
![Display customize header rows using template](images/schedule-headerrow-custom-header.png)
124+
115125
> You can refer to our [Angular Scheduler](https://www.syncfusion.com/angular-ui-components/angular-scheduler) feature tour page for its groundbreaking feature representations. You can also explore our [Angular Scheduler example](https://ej2.syncfusion.com/angular/demos/#/material/schedule/overview) to knows how to present and manipulate data.

0 commit comments

Comments
 (0)