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

Example

side = input.enum(Side.long, "Side")