Similar to the last question, but anyone knows how...
# intellij-plugins
f
Similar to the last question, but anyone knows how to make a button show this little dropdown + a popup with this styling? (I've replicated it using a regular button and manually creating the popup with popupfactory, but the style is kind of different)
b
I don't know the answer but you can look at how it's made on GitHub
f
took me forever, but finally figured it out, you want to: • Use
ActionButton
as your UI ◦ You can use
CustomComponentAction
interface on your AnAction to be able to set your ActionButton ◦ Pass in an
ActionGroup
with actions to your
ActionButton
as it's main action. (You can use
DefaultActionGroup
for this) • Set
Presentation.isPopupGroup = true
on your action
🎉 2