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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-virtual-picklist

v0.0.5

Published

This is an optimized picklist for Vue that virtualizes the available options

Downloads

2

Readme

Vue Virtual Picklist

It is a picklist that virtualizes its options to avoid mounting all of them in the DOM. Options are swaped depending on the position of the scrollbar.

Here you can find the documentation which has lots of examples.

Props

| Prop name | Description | Type | Values | Default | | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------ | ---------------------------------- | | caseInsensitive | If enabled, the search is Case Insensitive. | boolean | - | false | | disabled | if enabled, the picklist is disabled. | boolean | - | false | | enableSearch | If enabled, an input is rendered and the user can type on it. | boolean | - | false | | hideSelected | If enabled, the selected option is removed from the available options. | boolean | - | false | | noOptionsAvailableText | It is the text shown when the search returns no options. | string | - | "no options found" | | optionHeight | It determines the Height of each option. It is not necessary to set it. It is used by vue-virtualized-list to control the virtualization. | number | - | 30 | | options | These are the options available to be selected. Each object in the array must have the "value" and "label" keys. These objects can also have other keys, which will also be emited by the input and select events. | array | - | | | placeholder | It is the placeholder for when there are options to select but none were picked. | string | - | "select an option" | | searchInputPlaceholder | It is the placeholder for the search input. It has to be combined with the enable-search property. | string | - | "type to filter available options" | | searchKey | It is the key used to filter the objects you passed on options property. It defaults to value, but you can choose other key from the objects you passed. | string | - | "value" | | value | Stores the object which is used to determine the selected option. This object must be in the following format: { "value" : "a", "label" : "a", "index": 0 } | object | - | | | visibleOptions | It controls the number of visible options. | number | - | 5 |

Events

| Event name | Properties | Description | | ------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | show-options | | dispatched when options are hidden. | | select | option object - object containing value, label, index, and originalListIndex | dispatched after selecting an option. This can be used when you use value, instead of v-model. | | input | option object - object containing value, label, index, and originalListIndex | dispatched after selecting an option. This is used for v-model. |

Slots

| Name | Description | Bindings | | --------------- | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | selected-option | used to control how the selected option is rendered. | option object - it contains value, label, index, and originalListIndex | | placeholder | used to control how the picklist's placeholder is rendered. | | | dropdown-icon | used to override the dropdown icon. It can be any image and you can style it on the parent component. | | | option | used to control how each option from the list of options is rendered. | option object - it is an object containing value, label, index, and originalListIndex | | no-options | used to control how the message when the filter returns 0 results is displayed. | text string - it has the value you passed on the noOptionsAvailableText property |