Skip to content

Dropdown

Toggleable menu for displaying lists of links and actions.

Basic usage

Basic usage of the drop-down menu.

Position

Support to specify 6 pop-up orientations through position, which are: top: up, tl: top left, tr: top right, bottom: bottom (default), bl: bottom left, br: bottom right.

Trigger

Specify the trigger method by trigger.

The <tu-dropdown-button> component can be used to display a button with a menu of additional related functions on the right.

Group

Use the grouping option through the <tu-dropdown-group> component.

Drop-down box with multi-level menu.

Context Menu

After moving into the area, you can click the right mouse button to trigger.

Click here by right mouse

Max heigth

Support to specify the max height of pop-up box through popupMaxHeight, default is true. The pop-up box has a default height and displays scrollbar. Setting popupMaxHeight to false will display all menu options in their entirety

Sizes

Besides default size, tu-dropdown component provides three additional sizes for you to choose among different scenarios. Use attribute size to set additional sizes with mini, small, large.

NameDescriptionTypeDefault
popup-visible(v-model)Whether the popup is visibleBoolean-
default-popup-visibleWhether the popup is visible by default (uncontrolled mode)Booleanfalse
triggerTrigger methodStringclick
positionPopup positionStringbottom
popup-containerMount container for popupString HTMLElement-
hide-on-selectWhether to hide popup when the user selectsBooleantrue
sizeSize of dropdownStringmedium
NameDescriptionType
popup-visible-changeTriggered when the display status of the drop-down box changesFunction
selectTriggered when the user selectsFunction
NameDescription
contentContent
footerFooter
NameDescriptionTypeDefault
valueValueString Number Object-
disabledDisabledBooleanfalse
NameDescriptionType
clickEmitted when the button is clickedFunction
NameDescription
iconIcon
NameDescriptionTypeDefault
titleGroup titleString-
NameDescription
titleGroup title
NameDescriptionTypeDefault
valueValueString Number-
disabledWhether to disableBooleanfalse
triggerTrigger methodString'click'
positionPopup positionString'rt'
popup-visible(v-model)Whether the popup is visibleBoolean-
default-popup-visibleWhether the popup is visible by default (uncontrolled mode)Booleanfalse
option-propsCustom option propertiesObject-
NameDescriptionType
popup-visible-changeTriggered when the display status of the drop-down box changesFunction
NameDescription
iconIcon
contentSubmenu content
footerFooter
NameDescriptionTypeDefault
popup-visible(v-model)Whether the popup is visibleBoolean-
default-popup-visibleWhether the popup is visible by default (uncontrolled mode)Booleanfalse
triggerTrigger methodStringclick
positionPopup positionStringbottom
popup-containerMount container for popupString HTMLElement-
disabledWhether to disableBooleanfalse
typeType of Dropdown buttonString-
sizeSize of Dropdown buttonStringmedium
button-propsButton propsButtonProps-
hide-on-selectWhether to hide popup when the user selectsBooleantrue
NameDescriptionType
popup-visible-changeTriggered when the display status of the drop-down box changesFunction
selectTriggered when the user selectsFunction
clickEmitted when the button is clickedFunction
NameDescription
iconButton icon
contentContent