ovo.app.components.navigation¶
Module Contents¶
Functions¶
Display navigation controls (prev/next buttons and dropdown) for browsing designs. Updates query params and returns the currently selected design_id. |
Data¶
API¶
- ovo.app.components.navigation.CURRENT_SECTION_PREFIX¶
‘current_section_’
- ovo.app.components.navigation.ROUND_IDS_QUERY_PARAM¶
‘rounds’
- ovo.app.components.navigation.DESIGN_IDS_QUERY_PARAM¶
‘designs’
- ovo.app.components.navigation.show_prev_next_sections(key: str, title: str, sections: dict[str, callable])¶
- ovo.app.components.navigation.open_first_section(key: str)¶
- ovo.app.components.navigation.show_buttons(session_key: str, current_index: int, section_labels: list[str], key_suffix: str = '', title: str = '', show_title: bool = False, glow: bool = False)¶
- ovo.app.components.navigation.project_round_selector(rounds: list[ovo.core.database.Round], key_prefix='round_pills', allow_design_input=False) → list[str] | tuple[list[str], list[str] | None]¶
- ovo.app.components.navigation.pool_selector_table(pools_table: pandas.DataFrame) → list[str]¶
- ovo.app.components.navigation.previous_design_idx(idx)¶
- ovo.app.components.navigation.next_design_idx(idx, n)¶
- ovo.app.components.navigation.design_navigation_selector(design_ids: list[str], key: str = 'selected_design', labels_by_design_id: dict[str, str] | None = None) → str¶
Display navigation controls (prev/next buttons and dropdown) for browsing designs. Updates query params and returns the currently selected design_id.
Args: design_ids: List of design IDs to navigate through key: Query parameter key for storing selected design (default: “selected_design”) labels_by_design_id: Optional dict mapping design IDs to labels for display in the selectbox
Returns: str: Currently selected design_id