var Viewer = require('fx-md-v/start');
var viewer = new Viewer(options);
Check fx-md-v/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 |
model | Object | - | - | FENIX resource |
popover | Object | - | - | Bootstrap popover configuration |
config | Object | - | - | jquery-treegrid configuration |
whiteList | Object | - | - | - |
hideExportButton | boolean | true | false | Whether or not to show export button |
expandAttributes | Array of metadata attributes | [] | ["uid"] | Expand metadata attributes by default |
expandAttributesRecursively | Array of metadata attributes | [] | ['meContent'] | Expand metadata attributes and their children by default |
environment | string | 'develop' | 'production' | Server environment |
//This is an example
viewer.on("export", function (state) {...});
viewer.on(event, callback[, context])
: pub/subviewer.dispose()
: dispose the catalog instance
ready
: triggered when the metadata viewer is readydispose
: triggered when the box is disposedexport
: triggered when export button is clicked