2 Replies Latest reply on Dec 12, 2008 8:30 AM by Newsgroup_User

    How can I set an event as a property for custom component?

    john isaacks Level 1
      when you create a button there is a property click="function(event)" which is the same as addEventListener(MouseEvent.Click, function)

      But how can I create an event listener as a property for a custom component. for instance my custom component dispatches an event like so: dispatchEvent(new Event("stoneCountChosen")); but how can I add an inline property for it like so <BindingEventDemo stoneCountChosen="function(event)"/> ???

      Thanks!!!!