vue-confirm-select

1.1.0 • Public • Published

vue-confirm-select

Vue select component

Installation

npm i -D vue-confirm-select

Example

<confirm-select :title="Title"
                :list="selectList"
                :edit="'[e]'" :ok="'OK'" :cancel="'Cancel'"
                :callback="selection => myMethod(selection)"/>
import ConfirmSelect from 'vue-confirm-select'
components: {
    ConfirmSelect
}

data () {
  return {
    selectionList: [
      { title: 'None', value: null },
      { title: 'Option1', value: '1' }
      { title: 'Option2', value: '2' }
      { title: 'Option3', value: '3' }
    ]
  }
},

methods: {
  myMethod (selection) {
    console.log(`Selected ${selection}`)
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i vue-confirm-select

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

3.03 kB

Total Files

4

Last publish

Collaborators

  • orlv