Official function doesn’t exist, but you can reuse this code:
In this example, an option buttons are shown on list click.