@mongodb-js/compass-status

5.16.0 • Public • Published

Compass Status

Compass Status Plugin

Usage

Trigger specific actions:

  var StatusAction = app.appRegistry.getAction('Status.Actions');

  // Can call individual actions
  StatusAction.showAnimation();
  StatusAction.setMessage('Loading navigation');

  // Can configure many things at once
  StatusAction.configure({
    animation: true,
    message: 'Loading Databases',
    visible: true
  });

See a subview

For example, the schema subview:

  var StatusAction = app.appRegistry.getAction('Status.Actions');
  var SchemaStatusSubview = app.appRegistry.getComponent('Schema.StatusSubview');
  var SchemaStore = app.appRegistry.getStore('Schema.Store');
  StatusAction.showAnimation();
  StatusAction.setSubview(SchemaStatusSubview);
  SchemaStore.setState({samplingState: 'timeout'});

  // Also possible to show the waiting state
  SchemaStore.setState({samplingState: 'error', samplingTimeMS: 15001});

Roles

Key Description
Application.Status The status plugin component

Actions

Key Description
Status.Actions Gets all the status actions.

Stores

Key Description
Status.Store Triggers with status information.

Readme

Keywords

none

Package Sidebar

Install

npm i @mongodb-js/compass-status

Weekly Downloads

13

Version

5.16.0

License

SSPL

Unpacked Size

59.5 kB

Total Files

8

Last publish

Collaborators

  • mongodb-js-user
  • rueckstiess
  • durran
  • alexander_schroll
  • mbroadst
  • hswolff
  • satyasinha
  • matt_d_rat
  • jeff-allen-mongo
  • jonathan.balsano
  • mongodb-build
  • jack.weir
  • mcasimir
  • kristina.stefano
  • jarjee
  • shaketbaby
  • devtoolsbot
  • addaleax
  • gribnoysup
  • mutukrish
  • mongo-j
  • nbbeeken
  • dbx-node
  • nirinchev
  • pearsb1