Skip to main content

SelectButton

The SelectButton control displays a button with a drop-down list of options.

Ribbon select button with a dropdown list of file format options in DHTMLX Suite

Add SelectButton​

Use the add() method of TreeCollection to add a SelectButton control to a ribbon:

ribbon.data.add({
id:"select",
type: "selectButton",
value: "jpeg",
size: "small",
count: 20,
items: [
{
value: "jpeg",
hotkey: "alt+1"
},
{
value: "pdf",
hotkey: "alt+2"
},
{
value: "png",
hotkey: "alt+3"
}
]
});

Related sample: Ribbon. SelectButton

Properties​

Check the list of properties that you can set in the configuration object of a SelectButton control.

Work with SelectButton​

Use the Ribbon API and the TreeCollection API to work with a SelectButton control.