2

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.+ ).

Kuba
  • 136,707
  • 13
  • 279
  • 740
nilo de roock
  • 9,657
  • 3
  • 35
  • 77

0 Answers0