Notifications

Objects have access to three current types of Notification methods.

  • Increment
  • Set
  • ShowMessage

Increment and Set both work on the Badge notification type, a small circle with a counter that appears on the Component Tab.

The ShowMessage will display a 'snackbar' style notification inside the Chart.

Notification methods

You access the notifications, using the $emit() method, inside your Component code.

this.$emit('notification', {type: INCREMENT});

this.$emit('notification', {type: SET, count: 3});

this.$emit('notification', {type: SHOW_MESSAGE, message: "This is a message"});

Questions or comments about this page?

Add a Topic