Within my component, I have implemented a method that includes a jQuery event binding functionality.
jqueryNextDataEditableShow() {
$('#symbolTable .editable').on('hidden', function (e, reason) {
if (reason === 'save' || reason === 'nochange') {
var $next = $(this).closest('td').next().find('.editable');
if($next != undefined && $next.length == 0){
//perform certain actions here
}
setTimeout(function () {
$next.editable('show');
}, 300);
}
});
}
In addition to this, there exists another method named onSimulate()
within the class.
onSimulate(){
console.log("onSimulate Method Called");
}
I aim to invoke the onSimulate()
method at the designated location marked by a comment inside the jqueryNextDataEditableShow()
. However, I am encountering an issue where the this
keyword within the function refers to the document tag or element instead of the intended scope.