OptionsArrayArg¶
- class maze.core.rendering.renderer_args.OptionsArrayArg(name: str, title: str, options: List[Any | Tuple[str, Any]])¶
Represents an argument where a single value can be chosen from an array of allowed options.
- Parameters:
options – Array of allowed options. Either just a simple array of allowed argument values, or an array of tuples, each in the form of (value_displayed_to_the_user, value_passed_to_renderer)
- create_widget()¶
Build a dropdown widget.