This function opens a pop-up modal window where the user can select one item from the data.
Options
Adds one item to the end to close the menu, returning an index of -1.
The items that will be available for the user to select.
The title displayed in the selection window.
A promise that will resolve with the index of the selected item.
This function opens a pop-up modal window where the user can select one item from the data.