FormulaChanged: function(sender, args);
sender. Event source.
args. Event information.
The FormulaChanged event occurs after changing formula of the dictionary, which data is contained in the tree.
To execute the example, the HTML page must contain the DimensionTree component named dimTree (see Example of Creating the DimensionTree Component). Process and call the FormulaChanged event:
// Process and call the FormulaChanged event
dimTree.FormulaChanged.add(function(sender, args) {
console.log("New formula: %s", args.Formula)
})
// Call the FormulaChanged event
dimTree.FormulaChanged.fire(dimTree, {
Formula: "a[t]*5"
});
After executing the example the browser console displays the formula specified at calling the FormulaChanged event:
New formula: a[t]*5
See also: