New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vuetify-select-code

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-select-code

Select code component to vuetify.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

vuetify-select-code

If you use Vuejs with Vuetify and need a v-select to select by entering a code. Maybe it can help you.

Dependency

  • VueJS
  • Vuetify
  • mdi

See DEMO here

GitHub

npm

Install:

$ npm install vuetify-select-code --save

Register component:

1- Create a src/plugins/vuetify-select-code.js file with:
import Vue from "vue";
import VuetifySelectCode from "vuetify-select-code";
Vue.use(VuetifySelectCode);
export default VuetifySelectCode;

2- Add to src/mains.js file:
import "./plugins/vuetify-select-code.js";

Parent component:
<template>
  <div>
    <vuetify-select-code v-model="value" v-bind:label1="label1" v-bind:label2="label2" v-bind:items="items" v-bind:options="options"/>
     Parent v-model: {{ value }}
  </div>
</template>

<script>
export default {
  components: {
    VuetifySelectCode
  },
  data: () => ({
    value: "2",
    label1: "Code",
    label2: "Description",
    items: [
      { text: "1 - Dessert", value: "1" },
      { text: "2 - Calories", value: "2" },
      { text: "3 - Fat", value: "3" },
      { text: "4 - Protein", value: "4" },
      { text: "140 - Iron", value: "140" }
    ],
    options: {
      outlined: true,
      clearable: true
    },
  })
};
</script>

Keywords

vuejs

FAQs

Package last updated on 09 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts