New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

v-super-select

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-super-select

[![GNU 3 License](https://img.shields.io/github/license/wpatter6/v-super-select.svg?color=yellowgreen)](https://github.com/wpatter6/v-super-select/blob/master/LICENSE)

  • 0.2.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-63.51%
Maintainers
1
Weekly downloads
 
Created
Source

v-super-select

GNU 3 License

An accessible and customizable select/drop down component that features searching, grouping, and virtual scrolling.

Props

NameDescriptionTypeRequiredDefault
labelThe label of the dropdown field.Stringfalse-
nameThe label of the text input.Stringfalse-
valueFor v-model binding to selected value.Stringfalse-
itemsData items to display in the drop down.Arrayfalse-
placeholderPlaceholder text to display when no value is selected.Stringfalse'Select an Item...'
disabledIf true the control is disabled from user interactionBooleanfalsefalse
loadingIf true the control is disabled from user interaction and a loading spiner is shownBooleanfalsefalse
autocompleteValue for autocomplete of input tag.Stringfalse'nope'
groupNameFieldProperty of the top level item that indicates the name of the group.Stringfalse'groupName'
childrenFieldProperty of the top level item that contains child items of a group.Stringfalse'items'
valueFieldProperty of the item that contains its value.Stringfalse'value'
textFieldProperty of the item that contains its text to display.Stringfalse'text'
iconUrlFieldProperty of the item that contains the icon url.Stringfalse'iconUrl'
iconClassFieldProperty of the item that contains the icon class.Stringfalse'iconClass'
showValueIndicates if the value of each item should be shown on the right side of the item.Booleanfalsetrue
noneFoundTextText to display when no items are found.Stringfalse'No Results Found'
itemHeightHeight in pixels of each individual itemNumberfalse40
inputHeightCss height of the textbox containerStringfalse'52px'
inputWidthCss width of the textbox containerStringfalse'185px'
dropDownMaxHeightCss max height of dropdown. Will default to calculated bottom of textbox to bottom of window.Stringfalse-
debounceTimeAmount of milliseconds to wait after inputs before search is performed.Numberfalse250
searchFieldsAdditional item properties besides textField and valueField to include when searches are performed. Can be comma delimited string or array of strings.`StringString[]`false
spellcheckAllows enabling browser spellcheck on input field.Booleanfalsefalse
mobileHeaderBackgroundColorBackground color for full-style mobile header.Stringfalse'#2e3a30'
mobileHeaderBorderBottomBottom border color styling for full-style mobile header.Stringfalse'linear-gradient(to right, #2e3a30, #ccc)'
nativeMobileIf true, mobile devices will use native select.Booleanfalsefalse

Events

Event NameDescriptionParameters
inputFor v-model bindingThe selected item
change-The selected item
selectedIndexChanged-The selected item index
openedFired when the dropdown is opened-
closedFired when the dropdown is closed-
keyupKeyup event from filter input-
keypressKeypress event from filter input-
keydownKeydown event from filter input-

Slots

NameDescriptionScope Variables
labelUse to format labellabel
itemUse to format your list items however you like. Use item.$html to show bolded search values.item
groupUse to format your group header list items however you like.group
none-foundUse to format your 'none found' item however you like.text
defaultAdd items the old way with option tags, ex: <option value="1">Item 1</option>-

Methods

MethodDescriptionParameters
selectItemUsed to select an item.The item to select
clearSelectionClears the drop down selection.-
hideDropdownUsed to hide the dropdown-
showDropdownUsed to show the dropdown-

Keywords

FAQs

Package last updated on 10 Jul 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