Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
$ npm install vue-dropd --save
Register the component
import Vue from 'vue'
import Dropd from 'vue-dropd'
Vue.component('dropd', Dropd)
Now, you can use it anywhere, so, like:
<dropd
placeholder="Choose an ice cream topping"
@open="(list, event) => console.log(list, event)"
:list="['Caramel', 'Peanut butter', 'Sundae', 'Oreos']"
></dropd>
list: {Array}
Default: []
Description: An array of strings or objects to be used as dropdown items. If
you are using an array of objects, ensure you have a label
key. e.g
[{label: 'Caramel', value: 'caramel'}])
.
closeOnBlur: {Boolean}
Default: true
Description: Specifies whether the dropdown should be closed when the user clicks away.
defaultOpen: {Boolean}
Default: false
Description: Specifies whether the dropdown should be open by default (i.e when the component is created).
value: {String|Object}
Default: null
Description: Specifies the currently selected item. value
can be from
list
or manually set.
placeholder: {String|Object}
Default: Please select an item
Description: Specifies a placeholder for the dropdown. Very similar to the
placeholder
attribute on html inputs.
revealOn: {mousedown|mouseover}
Note: Not implemented yet.
Default: mousedown
Description: Specifies what event should trigger opening and closing the dropdown.
open: {(list, event)}
list
: The list that was received via props.
event
: If triggered by #1 condition below, null
... If triggered by #2
MouseEvent
... and if triggered by #3, FocusEvent
This event is only emitted when:
defaultOpen
is set to true
. Note that event
here would be set to
null
since the dropdown was programatically opened.tab
key.item-change: {(currentItem, event)}
currentItem
: The new item that was selected from the list.
event
: The MouseEvent
of the element when clicked.
This event is only emitted when an item in the dropdown list is clicked.
Please see Projects for a list of things to do.
dropd
feature/feature-name
yarn install -W
to install all of the dependencies in the workspaceyarn dev:vue
to monitor the changes you make in /packages/vue-dropd
and concurrently re-build oryarn build:vue
to compile packages/vue-dropd/index.vue
(shows
bundlesize
info too)MIT © Olaolu Olawuyi
FAQs
⚡️Zero-dependency minimalistic dropdown for Vue.
The npm package vue-dropd receives a total of 3 weekly downloads. As such, vue-dropd popularity was classified as not popular.
We found that vue-dropd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.