# Voeg de mogelijkheid toe om je eigen dropdownmenu te maken en aangepaste items toe te voegen in de composer

**URL:** https://meta.discourse.org/t/add-the-ability-to-create-your-own-dropdown-menu-and-add-custom-items-in-the-composer/273049
**Category:** Feature
**Tags:** composer, plugin-api
**Created:** [27 juli 2023 om 14:10 UTC](https://meta.discourse.org/t/add-the-ability-to-create-your-own-dropdown-menu-and-add-custom-items-in-the-composer/273049 "2023-07-27T14:10:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tyler-mairose-sp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyler-mairose-sp/32/315587_2.png) [@tyler-mairose-sp](https://meta.discourse.org/u/tyler-mairose-sp)
#### Post date: [27 juli 2023 om 14:10 UTC](https://meta.discourse.org/t/add-the-ability-to-create-your-own-dropdown-menu-and-add-custom-items-in-the-composer/273049/1 "2023-07-27T14:10:07Z")

</div>

Hello!

> [@How to add my own drop down(popupMenu) like the composer options?](https://meta.discourse.org/t/how-to-add-my-own-drop-down-popupmenu-like-the-composer-options/272314/4):
>
> Ah okay, that makes a lot of sense for the group sections. I changed the group back to extras and now it does show up, but now it along with the existing options cog dropdown the same menu. api.onToolbarCreate(toolbar =\> { toolbar.addButton({ id: "align\_center\_button", group: "extras", icon: "align-center", popupMenu: true }); }); Would this be a possible feature to add to the plugin API? The ability to add custom items to your own dropdown independent of the exist…

I recently asked this question over in the #Development category. I would like to request the feature be added to the plugin api with the ability to add your own custom dropdown menu with items.

The closest I was able to come was to add a new dropdown like so, but it expands the same options as the existing default options cog.

```javascript
api.onToolbarCreate(toolbar => {
  toolbar.addButton({
      id: "align_center_button",
      group: "extras",
      icon: "align-center",
      popupMenu: true
  });
});

```

Result:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/5/6/f56836c8350e6f6be7885f66b46342713b146eb0.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/0/8/9/08907050269e91bd1bda4cf27cacdcbf6f5f87e6.png)
