The JavaScript Dropdown Menu is a graphical user interface control that lets users choose from a list of actions that can be triggered. It has built-in support for icons and their positioning, various sizes, separators, RTL, and UI customization.
You can make use of different dropdown button sizes (default and small).
Users tend to perceive visual information better than text. The JavaScript Dropdown Menu has built-in options to include an icon to the left or above the text, or provide an icon-only button.
The JavaScript dropdown popup menu is a toggleable container that holds a list of action items or custom content that will open or close when the button is clicked. You can customize all the items in a JavaScript Drop Down Menu.
You can use a horizontal line separator to represent similar action items as a group within the list of available items.
You can make use of the icon-only Dropdown Button without button text.
Customize position values to display the JavaScript Dropdown Menu above, to the right, or to the left of the dropdown button.
You can customize the JavaScript Dropdown Button size, appearance, and feel. The dropdown menu popup element is completely customizable.
You can configure a Drop Down Button in JavaScript to open the popup menu without the arrow icon.
You can configure context menu control to add submenu items in JavaScript Dropdown Menu.
The Dropdown Menu component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different Dropdown Menu platforms from the links below,
In JavaScript Dropdown Menu, you have control over all the UI elements and their behaviors. It provides the best user experience to users through a rich set of developer-friendly APIs.
Easily get started with the Drop down Menu in JavaScript using a few simple lines of HTML and TS code example as demonstrated below. Also explore our JavaScript Dropdown Menu Example that shows you how to render and configure a Drop down Menu in JavaScript.
<div class="control-section">
<div>
<!--Element which is going to render-->
<button id="element">Clipboard</button>
</div>
</div>
import { DropDownButton, ItemModel } from '@syncfusion/ej2-splitbuttons';
//Initialize action items.
let items: ItemModel[] = [
{
text: 'Cut'
},
{
text: 'Copy'
},
{
text: 'Paste'
}];
// Initialize DropDownButton component.
let drpDownBtn: DropDownButton = new DropDownButton({ items: items });
// Render initialized DropDownButton.
drpDownBtn.appendTo('#element');
The Syncfusion JS DropDown Menu provides the following features:
You can find our JavaScript DropDownMenu demo, which demonstrates how to render and configure DropDown Menu.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.