Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/attrash-islam/vue-infinite-autocomplete

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/attrash-islam/vue-infinite-autocomplete

  • v0.0.0-20190403181825-41690ccb5741
  • Source
  • Go
  • Socket score

Version published
Created
Source

vue-infinite-autocomplete

Vue 2.x Wrapper for infinite-autocomplete library

Install

via npm:

$ npm i -S vue-infinite-autocomplete

Usage Example (See "demo" folder)

<template>
  <vue-infinite-autocomplete
    :data-source=currentOptions
    :value=currentValue
    v-on:select="handleOnSelect">
  </vue-infinite-autocomplete>
</template>

<script>
  import VueInfiniteAutocomplete from 'vue-infinite-autocomplete';
  export default {
    components: {
     "vue-infinite-autocomplete": VueInfiniteAutocomplete
    },
    data() {
      return {
        currentValue: "",
        currentOptions: [
          { text: 'Islam Attrash', id: 1},
          { text: 'Shai Reznik', id: 2},
          { text: 'Uri Shaked', id: 3},
          { text: 'Salsabel Eawissat', id: 4},
          { text: 'Mohammed Attrash', id: 5},
          { text: 'Mike Brocole', id: 6},
          { text: 'John Stewart', id: 7},
          { text: 'Stone Cold', id: 8},
          { text: 'Triple H', id: 9},
          { text: 'Sting The Stinger', id: 10},
          { text: 'Superman', id: 11},
          { text: 'Batman', id: 12},
          { text: 'The Joker', id: '13'},
          { text: 'Vanilla Icecream', id: '14'},
          { text: 'Stephane macmahon', id: '15'},
          { text: 'infinite autocomplete', id: '16'},
          { text: 'Barak Obama', id: null},
          { text: 'Bill Goldberg', id: 17},
          { text: 'Inishtanispfl', id: 'whooo? whoo?'},
          { text: 'Saloma', id: [1,2,3]},
          { text: 'Yosra Eawissat', id: {object: true}},
          { text: 'Medium Articles', id: 'what'}
        ]
      }
    },
    methods: {
      changeOptions() {
        this.currentOptions = [
          { text: 'Islam AttrashX', id: 1 },
          { text: 'Shai ReznikY', id: 2 },
          { text: 'Uri ShakedZ', id: 3 },
          { text: 'Salsabel EawissatE', id: 4 }
        ]
      },
      handleOnSelect(selectedValue) {
        console.log("selected: ", selectedValue);
      }
    }
  }
</script>

Params

  /**
   * current value
   */
  value?: string;
  /**
   * data source
   */
  dataSource?:Array<{text: string, id: any}>;
  /**
   * Chunk fetch size
   */
  fetchSize?:number,

Events

   /**
   * select event output handler when choosing an option
   */
    v-on:select?(selectedValue);

FAQs

Package last updated on 03 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc