Skip to content

Commit dd537a0

Browse files
Update README.md
1 parent 6fd2fc7 commit dd537a0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project allows you to use [DevExtreme Widgets](http://js.devexpress.com/Dem
1313
* [Static string option value](#static-option)
1414
* [Static non-string option value](#static-non-string-option)
1515
* [Event handling](#event-handling)
16-
* [Callback method](#callback-method)
16+
* [Callback functions](#callback-functions)
1717
* [One-way option binding](#one-way-binding)
1818
* [Two-way option binding](#two-way-binding)
1919
* [Custom templates](#custom-templates)
@@ -164,10 +164,10 @@ To bind the dxButton’s [click](http://js.devexpress.com/Documentation/ApiRefer
164164
<dx-button (onClick)="handler()"></dx-button>
165165
```
166166

167-
### <a name="callback-method"></a>Callback method ###
167+
### <a name="callback-functions"></a>Callback Functions ###
168168

169-
To specify a callback method as widget's option ([layer.customize](https://js.devexpress.com/Documentation/16_2/ApiReference/Data_Visualization_Widgets/dxVectorMap/Configuration/layers/#customize)
170-
option of dxVectorMap).
169+
To assign a callback function to a widget option (for example, to the [layer.customize](https://js.devexpress.com/Documentation/16_2/ApiReference/Data_Visualization_Widgets/dxVectorMap/Configuration/layers/#customize)
170+
option of dxVectorMap), use the following syntax.
171171

172172
```html
173173
<dx-vector-map>
@@ -179,8 +179,7 @@ option of dxVectorMap).
179179
</dx-vector-map>
180180
```
181181

182-
Be careful: the callback method will lost the context of the component, so if method use a context-dependent functionality we can
183-
bind the context to this method in a constructor explicitly.
182+
Note that callback functions are executed _outside_ the context of the component. But if the context is important, you can explicitly bind it to the callback function in the constructor.
184183

185184
```js
186185
constructor() {

0 commit comments

Comments
 (0)