EaxMdService.setTabSheetHeaders

Syntax

setTabSheetHeaders(report: PP.Exp.EaxDocument, metadata: Boolean, callback: PP.Delegate);

Parameters

report. Express report document.

metadata. Indicates if table headers are visible. If this parameter is set to True the titles are shown, otherwise they are not shown.

callback. Callback function.

Description

The setTabSheetHeaders method manages visibility of express report table headers.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded table in express report working area. Hide headers of this table:

// Get a service used to work with express report
var eaxMdService = expressBox.getService();
// Get express report document
var eaxAnalyzer = expressBox.getSource();
// Determine metadata
var metadata = False; // Hide express report table headers
// Determine arguments for callback function
var args = new PP.Mb.Ui.PropertyChangedEventArgs({   
    PropertyName: PP.Exp.Ui.ControlType.Headers,
    Metadata: metadata,
    TypeUpdateData: [PP.Exp.Ui.ViewTypeUpdate.Table, PP.Exp.Ui.ViewTypeUpdate.PropertyBar]
});
// Determine callback function
var onPanelChanged = function (n, t) {        
    var chartView = expressBox.getDataView().getChartView();    
    t ? (chartView.DataChanged.fire(chartView, t.Args), t.Args.fireCallback(n, t)) : chartView.DataChanged.fire(chartView, t);
};
// Set visibility of table headers
eaxMbService.setTabSheetHeaders(eaxAnalyzer, metadata, PP.Delegate(this.onPanelChanged, eaxMdService, args));
// Refresh express report
expressBox.refreshAll();

After executing the example headers of express report table are hidden:

See also:

EaxMdService