PropertyChanged: function (sender, args)
sender. Event source.
args. Event information.
The PropertyChanged event occurs on changing the state of a button of a group of buttons.
Event arguments contain data about the clicked button and the current button state.
To execute the example, the HTML page must contain the Navigator component named nav (see Example of Creating the Navigator Component). Add a handler for the PropertyChanged event:
// Get the NavigatorRibbon component navRib = nav.getRibbonView(); // Ad an event handler: show button name on the button click in the console rib.PropertyChanged.add(function (sender, args) { console.debug(args.getPropertyName()) });
After executing the example clicking the tool ribbon button displays button name in the console.
See also: