Skip to content

Instantly share code, notes, and snippets.

@ItsOnlyBinary
Created April 10, 2023 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItsOnlyBinary/f156edd2bda024c6094f5acd5824112c to your computer and use it in GitHub Desktop.
Save ItsOnlyBinary/f156edd2bda024c6094f5acd5824112c to your computer and use it in GitHub Desktop.
<template id="example-template">
<div @click="doClick">example plugin</div>
</template>
<script>
const componentObject = {
template: '#example-template',
props: [
'network',
'buffer',
'user',
'sidebarState',
],
methods: {
doClick() {
console.log('I was clicked');
},
},
};
kiwi.addUi('userbox_info', componentObject);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment