Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Merge 2985686 into 5b6644e
Browse files Browse the repository at this point in the history
  • Loading branch information
Niehaus committed Oct 27, 2020
2 parents 5b6644e + 2985686 commit f46be65
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/developer/events.rst
Expand Up @@ -22,4 +22,29 @@ name type description
============= ====== ==================================
statusMessage string Show a status message in StatusBar
============= ====== ==================================

The example below uses the `mounted()` method that will display those messages
in the `k-status-bar` as soon the Kytos Web UI DOM is rendered.

**Example**

.. code-block:: html

<template>
...
</template>

<script>
/* All the javascript methods are optional */
module.exports = {
methods: {
// put your javascript methods her
},
mounted() {
/* Will be displayed in kytos-blue */
this.$kytos.$emit('statusMessage', 'Your Message Here!')
/* Will be displayed in kytos-red */
this.$kytos.$emit('statusMessage', 'Your Message Here!', true)
}
}
</script>

0 comments on commit f46be65

Please sign in to comment.