MenuFlyout
vue
<fv-menuFlyout v-model="value" :options="options" placeholder="Pick a option">
</fv-menuFlyout>1
2
2
menuFlyout-Disabled
vue
<fv-menuFlyout v-model="value" :options="options" placeholder="Pick a option" disabled>
</fv-menuFlyout>1
2
2
menuFlyout-Dark Theme
vue
<fv-menuFlyout v-model="value" :options="options" placeholder="Pick a option" theme="dark">
</fv-menuFlyout>1
2
2
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| modelValue | object | No | () => | See the MenuFlyout modelValue option. |
| options | array | No | [] | See the MenuFlyout options option. |
| borderWidth | number | No | 1 | |
| placeholder | string | No | 'menuFlyout' | |
| borderRadius | string | No | '3' | |
| background | string | No | '' | |
| choosenBackground | string | No | '' | |
| choosenSliderBackground | string | No | '' | |
| inputForeground | string | No | '' | |
| inputBackground | string | No | '' | |
| titleForeground | string | No | '' | |
| dropDownIcon | string | No | 'ChevronDown' | |
| dropDownIconForeground | string | No | '' | |
| menuWidth | number | No | 200 | |
| menuMaxHeight | number | No | 350 | |
| rootTriggerMode | string | No | 'click' | See the MenuFlyout rootTriggerMode option. |
| triggerMode | string | No | 'enter' | See the MenuFlyout triggerMode option. |
| wrapperNode | any | No | null | See the MenuFlyout wrapperNode option. |
| revealBorderColor | boolean | No | false | |
| revealBackgroundColor | boolean | No | false | |
| mobileMode | boolean | No | false | See the MenuFlyout mobileMode option. |
| isBoxShadow | boolean | No | true | |
| disabled | boolean | No | false | |
| theme | string | No | 'global' | Theme style. Supports global, light, dark, system, and custom. |
| revealBorder | boolean | No | true | See the MenuFlyout revealBorder option. |
| lang | string | No | "global" | See the MenuFlyout lang option. |
Events
| Event | Arguments | Description |
|---|---|---|
| choose-item | value/object | Combobox choose item |
Slots
- Default
vue
<slot :item="item">
{{valueTrigger(item.type) !== 'divider' ? valueTrigger(item.text) : ''}}
</slot>1
2
3
2
3
vue
<template v-slot:default="x">
<i>{{x.item.text}}</i>
</template>1
2
3
2
3
- 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>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Data
- 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" }
]1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32