Options
All
  • Public
  • Public/Protected
  • All
Menu

@sensenet/repository-events

sn-repository-events

Gitter chat Build Status codecov Greenkeeper badge NPM version NPM downloads License Commitizen friendly

This NPM package contains event observables that can be used for tracking sensenet repository events.

Usage example:

const repository = new Repository({});
const eventHub = new EventHub(repository);

// subscribe to a Content Created event
eventHub.onContentCreated.subscribe((createdContent) => {
    console.log("New Content created:", createdContent);
});

The available events are:

  • onContentCreated
  • onContentCreateFailed
  • onContentModified
  • onContentModificationFailed
  • onContentLoaded
  • onContentDeleted
  • onContentDeleteFailed
  • onCustomActionExecuted
  • onCustomActionFailed
  • onContentMoved
  • onContentMoveFailed

Generated using TypeDoc