input.enum
Dropdown of the members of an enum, shown by their titles. Returns the chosen member (an input of the enum type).
input.enum(defval: const any, title: const string = na, options: const any = na, tooltip: const string = na, group: const string = na, inline: const string = na, confirm: const bool = false, display: const string = na, active: const bool = true) -> int
Parameters
defvalconst any: a member, e.g. Side.longtitleconst string: The setting's name in the indicator settings.optionsconst any: a tuple of members to offer, e.g. [Side.long, Side.short]; default alltooltipconst string: Text shown when the pointer rests on the setting.groupconst string: The settings section it goes in; inputs with the same group share a section (default: Inputs).inlineconst string: Inputs next to each other with the same inline name share one row.confirmconst bool: Accepted for compatibility; it has no effect yet.displayconst string: Accepted for compatibility; it has no effect yet.activeconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.
Example
side = input.enum(Side.long, "Side")