EaxDimBarMaster.setIsFixed

Syntax

setIsFixed(meta);

Parameters

meta. Metadata. This is a JSON object with the following properties: dimKey - key of the fixed dimension, value - indicates if the selected dimension is to be fixed (True - should be fixed, False - should not be fixed).

Description

The setIsFixed method fixes a dimension in selection wizard.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Fix a dimension in the selection wizard:

var dimBarMaster = expressBox.getPropertyBarView().getDimBarMasterView();
// Display selection wizard
dimBarMaster.show();
// Get first dimension key
var dimKey = dimBarMaster.getCurrentState().dims.its.it[0].k;
var title = dimBarMaster.getPanelByDimKey(dimKey).getTitle();
// Output information about dimension
console.log("Key: " + dimKey + ", Title: " + title);
// Mark this dimension as a fixed one
dimBarMaster.setIsFixed({ dimKey : dimKey, value : True });

After executing the example the Socio-Economic Indicators dimension is moved to the Fixed group. The browser console displays information on the dimension:

Key: 104, Title: Socio-economic indicators

See also:

EaxDimBarMaster