@moreillon/vue_group_picker

5.0.11 • Public • Published

Group picker

npm version

A Vue.js component to select a group from those managed by the group management microservice

Usage

<template>
  <div id="app">
    <GroupPicker
      @selection="selected($event)"
      groupManagerApiUrl="http://api.groups.example.com"/>
  </div>
</template>

<script>
import GroupPicker from '@moreillon/vue_group_picker'

export default {
  name: 'App',
  components: {
    GroupPicker
  },
  methods: {
    selected({ _id}){
      alert(`You selected group ${_id}`)
    }
  }
}
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @moreillon/vue_group_picker

Weekly Downloads

3

Version

5.0.11

License

MIT

Unpacked Size

120 kB

Total Files

18

Last publish

Collaborators

  • moreillon