Semantically equivalent to unbind. It is provided to allow simpler registration of cleanups as event handles.
let dijitWidget= ...
let binding = Binding.create();
...
// clean up binding if widget is destroyed
dijitWidget.own(binding);
Define properties to be synchronized and converted between two bindables.
Represents a combination of syncToRight
/syncToLeft
Optional
convertLeftToRight: ConvertFunctionif omitted, updated value will not be converted
Optional
convertRightToLeft: ConvertFunctionif omitted, updated value will not be converted
Binding.for(esriAccessor, vueComponent).sync('textField', 'numberField', Number, String);
Define properties to be synchronized between two bindables.
// synchronize between properties with same names
Binding.for(esriAccessor, vueComponent).syncAll('textField', 'otherTextField');
// synchronize between properties with different names
Binding.for(esriAccessor, vueComponent).syncAll({
'latitude: 'x',
'longitude: 'y'
});
Define properties to be synchronized between from left to right bindables.
// synchronize between properties with same names
Binding.for(esriAccessor, vueComponent).syncAllToLeft('textField', 'otherTextField');
// synchronize between properties with different names
Binding.for(esriAccessor, vueComponent).syncAllToLeft({
'latitude: 'x',
'longitude: 'y'
});
Define properties to be synchronized between from left to right bindables.
// synchronize between properties with same names
Binding.for(esriAccessor, vueComponent).syncAllToRight('textField', 'otherTextField');
// synchronize between properties with different names
Binding.for(esriAccessor, vueComponent).syncAllToRight({
'latitude: 'x',
'longitude: 'y'
});
Define properties to be synchronized and converted from right bindable to left bindable
Optional
convertValue: ConvertFunctionif omitted, updated value will not be converted
Binding.for(esriAccessor, vueComponent).syncToLeft('numberField', 'textField', String);
Define properties to be synchronized and converted from left bindable to right bindable
Optional
convertValue: ConvertFunctionif omitted, updated value will not be converted
Binding.for(esriAccessor, vueComponent).syncToRight('textField', 'numberField', Number);
Generated using TypeDoc
Class for two way binding between bindables.