altinn_control_view module

class AltinnControlView(time_units, control_dict, conn)

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)

create_callback_components(input_type='Input')

Generates a list of dynamic Dash Input or State components.

Return type:

list[str]

Parameters:

input_type (Literal['Input', 'State'])

create_layout()

Generates the layout for the AltinnControlView module.

Returns:

A Div element containing two tables, kontroller and kontrollutslag.

Return type:

layout

abstract 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)