Skip to content

FENIX-Platform/fenix-ui-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FENIX Analysis

var Analysis = require('fx-analysis/start');

var analysis = new Analysis({
        el : "#analysis-container",
        ...
    });

Configuration

Check fx-analysis/config/config.js to have a look of the default configuration.

Parameter Type Default Value Example Description
el CSS3 Selector/JavaScript DOM element/jQuery DOM element - "#container" component container
cache boolean false true whether or not to use FENIX bridge cache
environment string 'develop' 'production' Server environment
lang string 'EN' 'IT' Multilingual
catalog Object || false - - Proxied FENIX Catalog configuration. Check FENIX Catalog. `false` to do not render catalog
box Object - - Proxied FENIX Visualization Box configuration. Check FENIX Visualization Box.

API

//This is an example
analysis.on("catalog.show", function () {...});
  • analysis.on(event, callback[, context]) : pub/sub
  • analysis.dispose() : dispose the analysis instance

Events

  • catalog.show : triggered when a catalog is shown
  • ready : triggered when a instance is ready
  • add : triggered when a new visualization box is added
  • remove : triggered when a visualization box is removed
  • change : triggered when 'add' or 'remove' events are triggered