supporting_table module

class DataEditorSupportTable(label, get_data_func, states=None, pin_leftmost_column=True, suffix_to_colour_grey=None)

Bases: object

Class for adding a supporting context or reference table to the DataEditor.

Parameters:
  • label (str)

  • get_data_func (Callable[[...], DataFrame])

  • states (list[Any] | None)

  • pin_leftmost_column (bool)

  • suffix_to_colour_grey (list[str] | None)

label

The title/label displayed on the modal tab.

get_data_func

Callback function to fetch and populate data in the AgGrid.

pin_leftmost_column

Pins the first column to the left in the AgGrid table.

suffix_to_colour_grey

Suffix of column names to shade light grey in grid.

suptable_id

Generated auto-incremented ID of the supporting table.

support_table_callbacks()

Registers callbacks to load data from get_data_func when the modal opens.

Return type:

None

support_table_content()

Returns the layout content containing the AgGrid table.

Return type:

Div

Returns:

A Dash Div element.

support_table_layout()

Creates the Tab layout containing the reference table.

Return type:

Tab

Returns:

A Dash Bootstrap Tab element.

suptable_id = 0
class DataEditorSupportTables(applies_to_tables=None, applies_to_forms=None)

Bases: DataEditorHelperButton

Module providing a collection of supporting reference tables inside a modal.

It adds a trigger button that launches a modal with tabs containing supplementary grids.

Parameters:
  • applies_to_tables (list[str] | None)

  • applies_to_forms (list[str] | None)

support_components: ClassVar[list[DataEditorSupportTable]] = []