squirrels.parameter_options or the squirrels module.
Constructor
Creates aTextParameterOption object. Typically used in pyconfigs/parameters.py.
Examples
ATextParameterOption object is created in the pyconfigs/parameters.py file. It must be created in a function decorated with the create_with_options factory method from TextParameter.
Usage example in parameters.py
TextParameterOption object.
Setting up cascading parameters with varying default text
This example shows how to create text options that change their default values based on the selection of a parent parameter (e.g., different report types with different default search terms).Restricting default text by user groups
This example shows how to provide different default text values based on user access levels using theuser_groups parameter.
pyconfigs/user.py, then they can be used to provide different default text values as well. To do so, the user_attribute argument must be prefixed with custom_fields..