WbkCategoryView.PropertyChanged

Syntax

PropertyChanged: function (sender, args);

Parameters

sender. Event source.

args. Event information. Available arguments - object of the PP.Mb.Ui.PropertyChangedEventArgs, class containing the following properties: PropertyName - property name, Metadata - metadata, TypeUpdateData - updated data type.

Description

The PropertyChanged event occurs after changing settings in workbook ribbon.

Example

To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Process the PropertyChanged event, showing name of the changed workbook ribbon property to the browser console:

// Get tool ribbon
var ribbon = workbookBox.getRibbonView();
// Get the Home too ribbon category
var mainCategory = ribbon.getMainCategory();
// Process the PropertyChanged event
mainCategory.PropertyChanged.add(function (sender, args) {
    console.log("Changed property name: " + args.getPropertyName());
});

Execute the given example and click the Title button in the Home tab . After that the browser console displays name of the changed ribbon property:

Name of the changed property: TitleVisible

See also:

WbkCategoryView