Skip to content

vue
<fv-menuFlyout v-model="value" :options="options" placeholder="Pick a option">
</fv-menuFlyout>

vue
<fv-menuFlyout v-model="value" :options="options" placeholder="Pick a option" disabled>
</fv-menuFlyout>

vue
<fv-menuFlyout v-model="value" :options="options" placeholder="Pick a option" theme="dark">
</fv-menuFlyout>

Properties


PropertyTypeRequiredDefaultDescription
modelValueobjectNo() =>See the MenuFlyout modelValue option.
optionsarrayNo[]See the MenuFlyout options option.
borderWidthnumberNo1
placeholderstringNo'menuFlyout'
borderRadiusstringNo'3'
backgroundstringNo''
choosenBackgroundstringNo''
choosenSliderBackgroundstringNo''
inputForegroundstringNo''
inputBackgroundstringNo''
titleForegroundstringNo''
dropDownIconstringNo'ChevronDown'
dropDownIconForegroundstringNo''
menuWidthnumberNo200
menuMaxHeightnumberNo350
rootTriggerModestringNo'click'See the MenuFlyout rootTriggerMode option.
triggerModestringNo'enter'See the MenuFlyout triggerMode option.
wrapperNodeanyNonullSee the MenuFlyout wrapperNode option.
revealBorderColorbooleanNofalse
revealBackgroundColorbooleanNofalse
mobileModebooleanNofalseSee the MenuFlyout mobileMode option.
isBoxShadowbooleanNotrue
disabledbooleanNofalse
themestringNo'global'Theme style. Supports global, light, dark, system, and custom.
revealBorderbooleanNotrueSee the MenuFlyout revealBorder option.
langstringNo"global"See the MenuFlyout lang option.

Events


EventArgumentsDescription
choose-itemvalue/objectCombobox choose item

Slots


  1. Default
vue
<slot :item="item">
    {{valueTrigger(item.type) !== 'divider' ? valueTrigger(item.text) : ''}}
</slot>
vue
<template v-slot:default="x">
  <i>{{x.item.text}}</i>
</template>
  1. Input
vue
<slot name="input" :switch="switchStatus">
    <fv-text-box
        :model-value="computedValue"
        :placeholder="placeholder"
        :theme="$theme"
        readonly
        :background="inputBackground"
        :foreground="inputForeground"
        :border-radius="borderRadius"
        :icon="dropDownIcon"
        :icon-foreground="dropDownIconForeground"
        :reveal-background-color="revealBorderColor"
        :reveal-border-color="revealBackgroundColor"
        :reveal-border-width="borderWidth"
        :reveal-border="revealBorder"
        :is-box-shadow="isBoxShadow"
        :disabled="isDisabled"
        :cursor="'default'"
        @click="switchStatus"
        @mouseenter="switchStatus"
    ></fv-text-box>
</slot>

Data


  1. options
javascript
options = [{key: '', text: '', type: '', disabled: ''}]

//e.g.//

options: [
    { key: "fruitsHeader", text: "Fruits", type: "header" },
    { key: "apple", text: "Apple", children: [
        { key: "A", text: "A" },
        { key: "B", text: "B" },
        { key: "Apple C", text: "Apple C", children: [
            { key: "A", text: "A" },
            { key: "B", text: "B" },
            { key: "Apple C-C", text: "Apple C-C", children: [
                { key: "A", text: "A" },
                { key: "B", text: "B" },
                { key: "Apple C-C-C", text: "Apple C-C-C" }
            ] }
        ] }
    ] },
    { key: "banana", text: "Banana" },
    { key: "orange", text: "Orange", disabled: true },
    { key: "grape", text: "Grape", children: [
        { key: "A", text: "A" },
        { key: "B", text: "B" },
        { key: "C", text: "C" }
    ] },
    { key: "divider_1", text: "-", type: "divider" },
    { key: "vegetablesHeader", text: "Vegetables", type: "header" },
    { key: "broccoli", text: "Broccoli" },
    { key: "carrot", text: "Carrot" },
    { key: "lettuce", text: "Lettuce" }
]

MIT Licensed