FENIX metadata viewer
var Viewer = ; var viewer = options;
Configuration
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 |
API
//This is an exampleviewer;
viewer.on(event, callback[, context])
: pub/subviewer.dispose()
: dispose the catalog instance
Events
ready
: triggered when the metadata viewer is readydispose
: triggered when the box is disposedexport
: triggered when export button is clicked