0.4.5 • Published 5 years ago

@marchef/vuejs-dropdown v0.4.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Dropdown VueJs component

#c5f015 THIS PACKAGE IS STILL IN BETA!

A dropdown VueJs component. Compatible with Vue 2.x

Installation

npm i @marchef/vuejs-dropdown

Usage

import Dropdown from '@marchef/vuejs-dropdown'
Vue.component('dropdown', Dropdown);
<dropdown
    name="dropdown-name"
    :options="[
    {
        name: 'Option A',
        value: 'option_a'
    },
    {
        name: 'Option B',
        value: 'option_bOption B'
    }]"
>
</dropdown>

Props

NameDescriptionDefaultRequire
nameThe name of the form field. StringYES
optionsThe options of the dropdown field. Array (see below)YES
option-value-typeConfigure the Option format. name, icon, iconName, nameIconiconName
current-option-value-typeConfigure the current Option format. name, icon, iconName, nameIconiconName
current-option-classCSS Classes to style the current option. Stringdd_boarder_none
current-option-icon-classCSS Classes to style the current option icon. Stringdd_icon dd_float_left
current-option-value-classCSS Classes to style the current option value. Stringdd_float_left
descriptionShort description or question text. View on the top of the options list. String
descriptionClassCSS Classes to style the description. String
:arrowEnable the arrow icon. Booleantrue
arrow-icon-pathThe arrow SVG Icon path. StringM9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z
arrow-icon-viewboxThe arrow SVG viewbox. String0 0 20 20
arrow-classCSS Classes to style the arrow. Stringdd_icon dd_float_left
arrow-active-classCSS Classes to style the arrow when the dropdown is Open. Stringdd_transform-180
popper_optionsPopper options. Object
popperClassCSS Classes to override the default popper Class. Stringpopper

Prop Option Object

NameDescriptionDefaultRequire
nameThe Option Name.YES
valueThe Option Value.YES
iconSvgPathThe option SVG Icon path. String
iconViewboxThe option SVG Icon viewbox. String
optionClassCSS Classes to style the option.
optionActiveClassCSS Classes to style the active option in the options list.
optionIconClassCSS Classes to style the option icon.
optionValueClassCSS Classes to style the option value.
0.4.5

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago