altinn_data_capture module¶
- class AltinnDataCapture(time_units, database)¶
Bases:
object
Provides a layout and functionality for a modal that offers a graphical overview of the data capture from altinn3.
- Parameters:
time_units (list[str])
database (object)
- time_units¶
A list of the time units used.
- Type:
list
- database¶
The eimerdb connection.
- Type:
object
- callbacks()¶
Registers Dash callbacks for the Visualiseringsbygger module.
- Return type:
None
Notes
get_skjemas: Gets all the schemas from the eimerdb enheter table and adds them to a dropdown.
update_altinnskjema: Updates the chosen schema from the variable selector.
datafangstmodal_toggle: Toggles the modal, which contains the layout.
‘datafangst_graph’: Queries the skjemamottak table in eimerdb and returns a graph.
- create_callback_components(input_type='Input')¶
Generates a list of dynamic Dash Input or State components.
- Return type:
list
[Input
|State
]- Parameters:
input_type (Literal['Input', 'State'])
- create_partition_select(skjema=None, **kwargs)¶
Creates the partition select argument based on the chosen time units.
- Return type:
dict
[str
,Any
]- Parameters:
skjema (str | None)
kwargs (Any)
- layout()¶
Generates the layout for the AltinnDataCapture module.
- Returns:
A Div element containing components for the graphs.
- Return type:
layout