SingleSelectParameter
The class for defining and interacting with single-select parameters.
Can be found in the classpath squirrels.parameters.SingleSelectParameter
or squirrels.SingleSelectParameter
.
Static / Class Methods​
In addition to the static methods specified on this page, see the Parameter page for details on the CreateWithOptions and CreateFromSource factory methods.
For SingleSelectParameter in particular:
- The all_options argument of the CreateWithOptions factory method must be a sequence of SelectParameterOption instances
- The data_source argument of the CreateFromSource factory method must be a SelectDataSource
CreateSimple​
Creates the configurations for a single-select parameter by providing a list of SelectParameterOption instances, and adds it to a pool of parameter configurations that datasets can pick from.
Similar to the CreateWithOptions factory method, but without the optional arguments for user_attribute and parent_name. For arguments, see CreateWithOptions in the Parameter page.