Skip to content

Commit 0909d7a

Browse files
Merge pull request #34 from mlakatkou/GS-3357
[update] load article
2 parents 4698d78 + ebd852f commit 0909d7a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

docs/api/method/load.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ description: "loads data to the scheduler from an external data source"
2222
~~~jsx
2323
scheduler.load("data"); // the format of loaded data is auto-detected
2424
// or
25-
scheduler.load("data",function(){
25+
scheduler.load("data", () => {
2626
alert("Data has been successfully loaded");
2727
});
2828
~~~
@@ -33,20 +33,20 @@ scheduler.load("data",function(){
3333

3434
### Details
3535

36-
Pay attention that in case of dynamic loading the callback function that is passed as a second parameter will be called only during the initial loading of data.
37-
While next portions of data will be loaded later, the callback function won't be called anymore.
36+
Pay attention that in case of dynamic loading, the callback function that is passed as a second parameter will be called only during the initial loading of data.
37+
While the next portions of data will be loaded later, the callback function won't be called anymore.
3838

39-
If you need to call the callback function each time data is loaded into Scheduler, you can make use of the [onLoadEnd](api/event/onloadend.md) event.
39+
If you need to call the callback function each time data is loaded into Scheduler, you can use the [`onLoadEnd`](api/event/onloadend.md) event.
4040

4141
## Migration
4242

43-
In v5.2 and upper, scheduler detects the format of data automatically.
43+
In v5.2 and later, Scheduler detects the data format automatically.
4444

4545
But before v5.2, the method included three parameters:
4646

47-
- **url** - (*string*) the server-side URL (may be a static file or a server-side script which outputs data as XML)
48-
- **type** - (*string*) <i>('json', 'xml', 'ical')</i> the data type. The default value - <i>'xml'</i>
49-
- **callback** - (*function*) the callback function
47+
- `url` - (*string*) the server-side URL (may be a static file or a server-side script that outputs data as XML)
48+
- `type` - (*string*) (*'json', 'xml', 'ical'*) the data type. The default value is *'xml'*
49+
- `callback` - (*function*) the callback function
5050

5151
### Related API
5252
- [onLoadEnd](api/event/onloadend.md)
@@ -59,4 +59,4 @@ But before v5.2, the method included three parameters:
5959
- [Loading Data](guides/loading-data.md)
6060

6161
### Change log
62-
- The second **type** parameter of the method has been removed in v5.2.
62+
- The second `type` parameter of the method was removed in v5.2.

0 commit comments

Comments
 (0)