Parameters#
Base#
Parameter methods and properties#
Get the label for this parameter. |
|
The reactive operations namespace. |
|
|
Generate a schema for the parameters of the |
|
Given a serializable Python value, return a value that the parameter can be set to. |
|
Given the parameter value, return a Python value suitable for serialization. |
Parameter subclasses#
A String Parameter with optional regular expression (regex) validation. |
|
A Bytes Parameter, with a default value and optional regular expression (regex) matching. |
|
Color parameter defined as a hex RGB string with an optional |
|
Binary or tristate Boolean Parameter. |
|
An Event Parameter is one whose value is intimately linked to the triggering of events for watchers to consume. |
|
Parameter whose value can be generated dynamically by a callable object. |
|
A numeric |
|
Numeric Parameter required to be an Integer. |
|
Numeric Parameter required to be in the range |
|
A tuple Parameter (e.g. |
|
A numeric tuple Parameter (e.g. |
|
A NumericTuple for an X,Y coordinate. |
|
A numeric range with optional bounds and softbounds. |
|
Date parameter of datetime or date type. |
|
A datetime or date range specified as |
|
Parameter specifically allowing dates (not datetimes). |
|
A date range specified as |
|
Parameter whose value is a list of objects, usually of a specified type. |
|
Parameter whose value is a list of callable objects. |
|
Parameter that can be set to a string specifying the path of a file or folder. |
|
Parameter that can be set to a string specifying the path of a file. |
|
Parameter that can be set to a string specifying the path of a folder. |
|
Parameter whose value must be one object from a list of possible objects. |
|
Given a path glob, allows one file to be selected from those matching. |
|
Variant of |
|
Given a path glob, allows multiple files to be selected from the list of matches. |
|
Parameter allowing selection of either a subclass or an instance of a class or tuple of classes. |
|
Parameter whose value is a dictionary. |
|
Parameter whose value is a numpy array. |
|
Parameter whose value is a pandas |
|
Parameter whose value is a pandas |
|
Parameter holding a value that is a callable object, such as a function. |
|
A user-provided function that can be invoked like a class or object method using (). |
|
A Parameter that is a composite of a set of other attributes of the class. |
Helpers#
|
For each soft bound (upper and lower), if there is a defined bound (not equal to None) and does not exceed the hard bound, then it is returned. |
|
Given a dictionary of |
|
Given a set of keyword literals, promote to the appropriate parameter type based on some simple heuristics. |
|
Given a set of |
|
A callable object returning a number for the current time. |
|
Find the path to an existing file, searching the paths specified in the search_paths parameter if the filename is not absolute, and converting a UNIX-style path to the current OS's format if necessary. |