npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@szotyi/vue2-selectize

v1.0.0

Published

A Selectize wrapper for VueJS.

Readme

vue2-selectize by Szotyi41

A Selectize wrapper for VueJS 2.

New Features

Functions

  • slideToggle - If its true the options will slide
  • disableTriggerOnChange - If its called the onChange event will not called anymore
  • enableTriggerOnChange - If its called the onChange event will callend again
  • onItemRemove <function(items, removedItem)> - This function called when an item removed
  • setFocus
  • setBlur
  • setValue <function (value)>
  • setOptions <function (array or object of option)>
  • addOptions <function (array or object of option)>
  • addOption <function (object of option)>
  • setItems <function (object of items, if its true its added when option is not exists)> - Remove all items and add
  • addItems <function (object of items, if its true its added when option is not exists)> - Just add items, not remove
  • addItem <function (item, if its true its added when option is not exists)>
  • addOptionsIfNotExists <function (options)>
  • addOptionIfNotExists <function (option)>
  • addItemAsOption <function (option)> - Add item (param will option not item) Option has value and text field
  • createOnEnter - Create will run when you press enter and text is not empty
  • createOnBlur - Create will run when you click outside and text is not empty
  • debug - Enable debug mode
  • disableItemRemove - Disable user can remove item with backspace, its help you make required fields

Variables

  • inputText - Text in input
  • element - Element of select
  • options - Options array
  • focus - If focused

Prerequisites

  • jQuery >= 1.7.0

Installation

npm install --save jquery vue2-selectize

Usage

<selectize v-model="selected" :settings="settings"> <!-- settings is optional -->
  <option :value="1">One</option>
  <option :value="2">Two</option>
</selectize>
import Selectize from 'vue2-selectize'

export default {
  components: {
    Selectize
  },
  data() {
    return {
      settings: {}, // https://github.com/selectize/selectize.js/blob/master/docs/usage.md
      selected: 1
    }
  }
}
// Include your preferred theme in your main SASS file (or your component's <style lang="scss"/> section).

@import "~selectize/dist/css/selectize.bootstrap3.css";