angular + webix button click event

I seem to be having some difficulty in making the click event work with my angular controller. The snippet has the details: http://webix.com/snippet/d0ca28b6

The button api docs don’t say that there is a click event available for the button either: http://docs.webix.com/api__refs__ui.button.html

I suppose it’s an issue because the webix ui button is a combination of the button element and a div element, though from my understanding click events should work on div elements as well with ng-click.

Ok, it should be

webix-event="onItemClick = yourFunction()"

I should have looked at the complex angularjs example.

First, you can’t use ng-click and can use just a click attribute

<div view="button" click="someMethod"

http://webix.com/snippet/cecc8b61

Which will call $scope.someMethod()
Next version will understand both formats “someMethod” and “someMethod()”

Also, I have confirmed and fixed issue with “window” control, inside of which $scope was not resolved and above doesn’t work - fix will be available as part of the next build

Fixed build ( v.1.5.1 ) is available at github - Releases · webix-hub/webix · GitHub