JSPM

flags-dropdown-vue

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 135
  • Score
    100M100P100Q77389F
  • License MIT

World Flag Dropdown Vue

Package Exports

  • flags-dropdown-vue

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flags-dropdown-vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

flag-dropdown-vue

Flag Dropdown Component for Vue2

Installation

npm install flags-dropdown-vue --save

Usage

import FlagsDropdown from 'flags-dropdown-vue'
Vue.component('flags-dropdown', FlagsDropdown);

var app = new Vue({
    el: '#app',
    data: {
      country_iso : "mm"
    },
    methods: {
        optionSelected: function (data) {
            //console.log(data.id)
            //console.log(data.phonecode)
            this.country_iso = data.iso
      }
    }
});

Html

<link rel="stylesheet" type="text/css" href="https://rawgit.com/beyondplus/flags-dropdown-vue/master/css/flags.min.css">
<link rel="stylesheet" type="text/css" href="https://rawgit.com/beyondplus/flags-dropdown-vue/master/css/custom.css">
<flags-dropdown  v-on:change="optionSelected" :selected="country_iso"></flags-dropdown>

alt text

Our Website

www.beyondplus.biz