MetadataChanged: function (sender, args);
sender. Event source.
args. Event information.
The MetadataChanged event occurs on changing data in the view of the group of buttons used to switch between data display modes.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Handle the MetadataChanged event:
// Get button group view for selecting data display mode var toolBar = expressBox.getDataView().getToolBarView(); toolBar.MetadataChanged.add( function() { // Refresh button group toolBar.refreshAll(); } );
After executing the example each time after the MetadataChanged event occurs, the group of buttons used to switch between data display modes, is refreshed.
See also: