RevisionsPanel.RequestMetadata

Syntax

RequestMetadata: function(sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The RequestMetadata event is fired on requesting metadata for the Revisions panel in the workbook side panel.

Example

To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Process and fire the RequestMetadata event, so that the browser console displays a message about the current metadata request on firing the event:

// Get workbook properties panel
var propertyBar = workbookBox.getPropertyBarView();
// Get revisions panel
var revisionsPanel = propertyBar.getSerieRevisionsPanel()
// Process the RequestMetadata event
revisionsPanel.RequestMetadata.add(function (sender, args) {
    console.log("Request metadata...");
});
// Fire this event
revisionsPanel.RequestMetadata.fire(this);

After executing the example each time the RequestMetadata event is fired, the browser console displays a notice that metadata request is performed:

Request metadata...

See also:

RevisionsPanel