fenix-ui-catalog
v2.0.0-beta.62
Published
FENIX Catalog
Downloads
41
Readme
FENIX Catalog
var Catalog = require('fx-catalog/start');
var catalog = new Catalog(options);
Configuration
Check fx-catalog/config/config.js
to have a look of the default configuration.
API
//This is an example
catalog.reset();
catalog.reset()
: reset catalog filter criteria and resultscatalog.on(event, callback[, context])
: pub/subcatalog.dispose()
: dispose the catalog instance
Events
select
: triggered when a "select" button is clickeddownload
: triggered when a "download" button is clickedview
: triggered when a "view" button is clickedmetadata
: triggered when a "metadata" button is clicked
Filtering process
Results will be referred to the baseFilter criteria merged with the user selection. In case a user selects a criteria already defined in the base filter, the user choice will override the baseFilter one.
Available Selectors
It is possible to add custom selectors. In order to do so, use the pluginRegistry
option that will be merged to the defaults one.
In case an added selector has the same id
of a default one, the default one will be overridden.