fenix-ui-metadata-viewer

3.0.0-beta.16 • Public • Published

FENIX metadata viewer

 
var Viewer = require('fx-md-v/start');
 
var viewer = new 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 example
viewer.on("export", function (state) {...});
  • viewer.on(event, callback[, context]) : pub/sub
  • viewer.dispose() : dispose the catalog instance

Events

  • ready : triggered when the metadata viewer is ready
  • dispose : triggered when the box is disposed
  • export : triggered when export button is clicked

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.0-beta.164latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.0-beta.164
3.0.0-beta.150
3.0.0-beta.140
3.0.0-beta.130
3.0.0-beta.120
3.0.0-beta.110
3.0.0-beta.100
3.0.0-beta.90
3.0.0-beta.80
3.0.0-beta.70
3.0.0-beta.60
3.0.0-beta.50
3.0.0-beta.40
3.0.0-beta.30
3.0.0-beta.20
3.0.0-beta.10
3.0.0-beta.00

Package Sidebar

Install

npm i fenix-ui-metadata-viewer

Weekly Downloads

4

Version

3.0.0-beta.16

License

GPL-2.0

Unpacked Size

7.92 MB

Total Files

113

Last publish

Collaborators

  • fenix-platform