Ghpy component: input menu?

Hello
How to add menu like this to Ghpython component (ghpy) input?

image

Hi,

I would try to create a child class from the
Grasshopper.Kernel.Parameters.Param_ScriptVariable() class, and override the
AppendAdditionalMenuItems() method.

It should be similar to how you would add items to a component level context menu.

Thanks @Kaushik
Here a good example and another example of @piac.
But unfortunately don’t show how to use the method with the input.

I tried with this but don’t work