Skip to content

$scope

scope for resolving event and method names

let $scope: object
grid.$scope = {
action:function(){ alert("works"); }
};
grid.attachEvent("onItemClick", "action");

When the event name or click handler is defined as a string name, the component will check if the handler with such name exists in the $scope object first, and only after that will try to locate the global handler with the same name.