altinn_editor_supporting_table module

class AltinnEditorSupportTables(time_units, conn, variable_selector_instance)

Bases: object

This module provides supporting tables for the Altinn editor.

It adds a button that opens a modal with tabs containing tables with extra informatiion.

Note

Adding your own supporting tables is not supported at this time.

Parameters:
  • time_units (list[str])

  • conn (object)

  • variable_selector_instance (VariableSelector)

create_ag_grid(component_id)

Returns a non-editable AgGrid component with a dark alpine theme.

Return type:

AgGrid

Parameters:

component_id (str)

layout()

Returns the layout for the Altinn Editor Support Tables module.

Return type:

Div

module_callbacks()

Registers the callbacks for the Altinn Editor Support Tables module.

Return type:

None

support_tables_modal()

Return a modal component containing tab content.

Return type:

Modal

update_partition_select(partition_dict, key_to_update)

Updates the dictionary by adding the previous value (N-1) to the list for a single specified key.

Parameters:
  • partition_dict (dict[str, list[int | str]]) – Dictionary containing lists of values

  • key_to_update (str) – Key to update by appending (N-1)

Return type:

dict[str, list[int | str]]

Returns:

Updated dictionary