Skip to content

tables

session_manager.tables

Tables to display session manager data.

Classes

ActiveSessions

Bases: Table

Defines a table for the active sessions data.

Classes
Meta

Table meta options for rendering behaviour and styling.

Functions
render_select(value)

Customize behavior of checkboxes in the select column.

Source code in session_manager/tables.py
def render_select(self, value: str) -> str:
    """Customize behavior of checkboxes in the select column."""
    return mark_safe(
        f'<input type="radio" name="select session" value="{value}" '
        f'id="{value}-input" hx-preserve="true" '
        'class="form-check-input form-check-input-lg session-checkbox" '
        'style="transform: scale(1.5);" '
    )

AvailableConfigs

Bases: Table

Defines a table for the available configurations.

Classes
Meta

Table meta options for rendering behaviour and styling.

Functions
render_select(value)

Customize behavior of checkboxes in the select column.

Source code in session_manager/tables.py
def render_select(self, value: str) -> str:
    """Customize behavior of checkboxes in the select column."""
    return mark_safe(
        f'<input type="radio" name="select config" value="{value}" '
        f'id="{value}-input" hx-preserve="true" '
        'class="form-check-input form-check-input-lg config-checkbox" '
        'style="transform: scale(1.5);" '
    )

LabelledCheckBoxColumn

Bases: CheckBoxColumn

A CheckBoxColumn where the header is a label.

Attributes
header property

The value used for the column heading.