Consider the Mathematica function Manipulate where you assign the placement of the controls with the option parameter ControlPlacement, i.e.
ControlPlacement -> Top
Now assume I want to create a function f:
f[x_, option_] := ( ... )
That is, I assume this is the way to define the functionality I require.
I want the option parameter to have values from
opts := {1 -> "A", 2 -> "B", 3-> "C", 4-> "D", 5-> "E"}
such that when I enter the function that when I type option, a dropdownlist appears showing A, B, C, D and E.
How do I create this functionality for a function?
I don't think it is, as suggested in the comments, custom completion ( which is still being developed for version 12.+ ).
1, why would other characters appear on a dropdown? – Kuba Aug 30 '16 at 13:08