altinn_control_view module

class AltinnControlView(time_units, control_dict, conn, outputs=None)

Bases: ABC

Provides a layout and functionality for a modal that offers a tabular view of the controls.

Parameters:
  • time_units (list[str])

  • control_dict (dict[str, Any])

  • conn (object)

  • outputs (list[str] | None)

create_layout()

Generates the layout for the AltinnControlView module.

Returns:

A Div element containing two tables, kontroller and kontrollutslag.

Return type:

layout

abstractmethod layout()

Defines the layout for the AltinnControlView 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()

Registers Dash callbacks for the AltinnControlView module.

Return type:

None

class AltinnControlViewTab(time_units, control_dict, conn)

Bases: TabImplementation, AltinnControlView

AltinnControlView implemented as a tab.

Parameters:
  • time_units (list[str])

  • control_dict (dict[str, Any])

  • conn (object)

class AltinnControlViewWindow(time_units, control_dict, conn)

Bases: WindowImplementation, AltinnControlView

AltinnControlView implemented as a window.

Parameters:
  • time_units (list[str])

  • control_dict (dict[str, Any])

  • conn (object)