Under my Angular app : i ve this template :
<dxi-column dataField="ordre"
caption="Ordre"
[width]="70"
dataType="number"
[allowEditing]="true">
<dxi-validation-rule type="async"
[validationCallback]="myFunction"
message="">
</dxi-validation-rule>
</dxi-column>
and myFuntion looks like this :
myFunction=(params) => {
console.log(this.myClassVariable)
return Of(!this.myClassVariable.includes(params.value)).toPromise()
}
My purpose is to change "myFunction" declaration to be something like this :
myFunction() {
//SAME TREATMENT
}
Maybe also change the invocation in the html , but basically keep the same beahviour , i ve tried this :
myFunction() {
console.log(this.myClassVariable) // THROW UNDEFINED
return Of(!this.myClassVariable.includes(params.value)).toPromise()
}
but i got UNDEFINED
for my class variable passing
Suggestions ??