Hello,
On my Devextreme wrappers, I have this ad infinitum:
...
@bindable({ mode: BindingMode.twoWay }) accessKey = undefined;
@bindable({ mode: BindingMode.twoWay }) activeStateEnabled = true;
@bindable({ mode: BindingMode.twoWay }) buttons = undefined;
@bindable({ mode: BindingMode.twoWay }) disabled = false;
@bindable({ mode: BindingMode.twoWay }) elementAttr = {};
@bindable({ mode: BindingMode.twoWay }) focusStateEnabled = true;
@bindable({ mode: BindingMode.twoWay }) height = undefined;
@bindable({ mode: BindingMode.twoWay }) hint = undefined;
@bindable({ mode: BindingMode.twoWay }) hoverStateEnabled = true;
@bindable({ mode: BindingMode.twoWay }) inputAttr = {};
@bindable({ mode: BindingMode.twoWay }) isDirty = false;
...
I see defaultBindingMode for custom attributes, but not for custom elements. I would like to be able to do this:
@customElement({
name: 'tsi-dx-text-box',
template: null,
processContent(node, _, instructionData) {
return harvestDxTemplates(node, _, instructionData);
},
defaultBindingMode: BindingMode.twoWay
})
Am I missing it somewhere?