altinn_components module¶
- class AltinnComponents(time_units)¶
Bases:
object
Components for the Altinn Skjemadata Editor.
Includes: - layout (The main layout) - Offcanvas for kontaktinfo and controls - Modals - Function for creating ag grids
- Parameters:
time_units (int)
- create_ag_grid(component_id)¶
Returns a non-editable AgGrid component with a dark alpine theme.
- Return type:
AgGrid
- Parameters:
component_id (str)
- create_cards()¶
Return a list of dbc.Card components dynamically generated for each time unit.
- Return type:
list
[Card
]
- enhetsinfomodal()¶
Returns a modal component containing a table with enhetsinfo.
- Return type:
Modal
- historikkmodal()¶
Retuns a modal component containing a table with the editing history.
- Return type:
Modal
- hjelpetabellmodal()¶
Return a modal component containing tab content. Future versions may support adding new tabs.
- Return type:
Modal
- kommentarmodal()¶
Returns a modal component containing editing comments.
- Return type:
Modal
- kontaktcanvas()¶
Retuns an offcanvas component containing a table with contact information.
- Return type:
Div
- layout()¶
Generate the layout for the Pi memorizer tab.
- Return type:
Div
- offcanvas_kontrollutslag()¶
Returns an offcanvas component containing a table for kontrollutslag.
- Return type:
Div
- skjemaversjonsmodal()¶
Returns a modal component with a table containing all the skjema versions.
- Return type:
Modal