bofregistry module¶
- class BofInformation(label=None, variableselector_foretak_name='foretak')¶
Bases:
ModuleBaseModule for displaying and managing information from BoF.
This component: - Displays detailed information about selected foretak using cards and ag-grids. - Interacts with sqlite files to display information for the currently selected foretak. - The sqlite files can be accessed from the oracle-hns shared bucket from the vof team.
- Parameters:
label (str)
variableselector_foretak_name (str)
- generate_card(title, component_id, var_type)¶
Generate a Dash Bootstrap card for displaying data.
- Parameters:
title (
str) – Title displayed in the card header.component_id (
str) – ID assigned to the input component inside the card.var_type (
str) – Input type for the component (e.g., “text”).
- Returns:
A styled card containing an input field.
- Return type:
Div
- icon: str | Component¶
- implemented_as: Literal['Tab', 'Window'] | None¶
- label: str¶
- layout()¶
Generate the layout for the BoF Foretak tab.
- Return type:
Div
- module_callbacks()¶
Register Dash callbacks for the BoF Foretak tab.
- Return type:
None
Notes
The bof_data callback fetches and updates data in the cards based on the selected foretak.
It also runs a check for “has_bedrift” to be able to sort by the selected bedrift if necessary.
- module_id: str¶
- module_layout: Div | Tab¶
- module_name: str¶
- module_number: int¶
- ssb_bedrift_modal()¶
Create a modal for displaying bof data.
- Returns:
A modal component containing an AgGrid table for bof data.
- Return type:
Modal
- ssb_foretak_modal()¶
Create a modal for displaying bof data.
- Returns:
A modal component containing an AgGrid table for bof data.
- Return type:
Modal