Event bindings allows binding events to to JavaScript functions.

You can hook up event handlers to call JavaScript functions with similar syntax to data bindings:

<JavaScript>
    module.exports = {
        clickHandler: function (args) {
            console.log("I was clicked: " + JSON.stringify(args));
        }
    };
</JavaScript>
<Button Clicked="{clickHandler}" Text="Click me!" />

For more information, see DataBinding.

Location

Namespace
Fuse.Reactive
Package
Fuse.Reactive.Bindings 2.9.1
Show Uno properties and methods

Interface of EventBinding

Inherited from ExpressionBinding

Inherited from Binding

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces