You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
171
171
172
172
```html
173
173
<dx-vector-map>
@@ -179,8 +179,7 @@ option of dxVectorMap).
179
179
</dx-vector-map>
180
180
```
181
181
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.
0 commit comments