You can use this extension.
"items" is a list of items that will be shown on the popup menu. "id" can be any whole/integer number.
To react to the user clicking on an item, use this.