Exhibit/API/2.2.0/Events

From SIMILE Widgets
Jump to: navigation, search

Contents

Events

Signals for various types of listeners.

Exhibit 2.0

Database

In order, during loading:

  • onBeforeLoadingTypes:
  • onAfterLoadingTypes:
  • onBeforeLoadingProperties:
  • onAfterLoadingProperties:
  • onBeforeLoadingItems:
  • onAfterLoadingItems:

In order, during database reset:

  • onBeforeRemovingAllStatements:
  • onAfterRemovingAllStatements:

onAfterLoadingItems is also fired in all cases where the database is modified after the initial load, making its name a bit of a misnomer.

See database documentation.

Collection

  • onItemsChanged:
  • onRootItemsChanged:

See collection documentation.

Ideas for Exhibit 3.0

Signals Exhibit emits through jQuery for other code to bind to.

Initialization

In order of execution during start up:

  • beforeinitialize.exhibit:
  • registerimporter.exhibit:
  • beforedataload.exhibit:
  • dataload.exhibit:
  • afterdataload.exhibit:
  • initialize.exhibit:
  • afterinitialize.exhibit:
  • registerexporter.exhibit:

User interaction

In no particular order:

  • beforeviewchange.exhibit:
  • viewchange.exhibit:
  • afterviewchange.exhibit:
  • beforeitemshow.exhibit:
  • itemshow.exhibit:
  • afteritemshow.exhibit:
  • beforeadditem.exhibit:
  • additem.exhibit:
  • afteradditem.exhibit:
  • beforeremoveitem.exhibit:
  • removeitem.exhibit:
  • afterremoveitem.exhibit:
  • beforefacetchange.exhibit:
  • facetchange.exhibit:
  • afterfacetchange.exhibit:
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox