Defaults#
- class lumen.dashboard.Defaults(*, download, filters, sources, transforms, views, name)#
Defaults to apply to the component classes.
Parameters#
download
type: dict
default: {}
Defaults for the Download object
filters
type: list[dict]
default: []
Defaults for Filter objects.
name
type: str
default: 'Defaults'
String identifier for this object.
sources
type: list[dict]
default: []
Defaults for Source objects.
transforms
type: list[dict]
default: []
Defaults for Transform objects.
views
type: list[dict]
default: []
Defaults for View objects.
Methods#
- Defaults.apply()#
- Defaults.to_spec(context: Dict[str, Any] | None = None) Dict[str, Any] #
Exports the full specification to reconstruct this component.
- Parameters:
context (Dict[str, Any]) – Context contains the specification of all previously serialized components, e.g. to allow resolving of references.
- Return type:
Declarative specification of this component.