altinn_data_capture module¶
- class AltinnDataCapture(time_units, label='🎣 Datafangst', database_type='altinn_default', database=None)¶
Bases:
ABCProvides a layout and functionality for a modal that offers a graphical overview of the data capture from altinn3.
This module vizualizes the data capture and makes it easy to see how many forms have been received over time.
Currently it only suppoerts the altinn_default with default schemas.
- Parameters:
time_units (list[str])
label (str)
database_type (str | None)
database (object | None)
- callbacks_eimerdb_default(dynamic_states)¶
Defines the callbacks when using the altinn_default database type.
- Return type:
None- Parameters:
dynamic_states (list[Input])
-
implemented_database_types:
ClassVar[list[str]] = ['altinn_default']¶
- is_valid()¶
Checks if the module is valid.
- Raises:
TypeError – If database object does not have query method.
ValueError – If database_type is not one of the implemented types.
NotImplementedError – If attempting to create custom functions.
- Return type:
None
- abstractmethod layout()¶
Defines the layout for the AltinnDataCapture module.
This is an abstract method that must be implemented by subclasses to define the module’s layout.
- Returns:
A Dash HTML Div component representing the layout of the module.
- Return type:
html.Div
- module_callbacks()¶
Defines the callbacks for the AltinnDataCapture module.
- Return type:
None
- class AltinnDataCaptureTab(time_units, label='🎣 Datafangst', database_type='altinn_default', database=None)¶
Bases:
TabImplementation,AltinnDataCaptureAltinnDatacapture implemented as a tab.
- Parameters:
time_units (list[str])
label (str)
database_type (str | None)
database (object | None)
- class AltinnDataCaptureWindow(time_units, label='Datafangst', database_type='altinn_default', database=None)¶
Bases:
WindowImplementation,AltinnDataCaptureAltinnDatacapture implemented as a window.
- Parameters:
time_units (list[str])
label (str)
database_type (str | None)
database (object | None)