h2o_dashboard.util
- async h2o_dashboard.util.add_card(q: Query, name, card, page_name: str | None = None) None [source]
- async h2o_dashboard.util.clear_cards(q: Query, ignore: List[str] | None = None) None [source]
Clear cards from the page except those listed in ‘ignore’.
- h2o_dashboard.util.load_env_file(env_path: str = '.env')[source]
Load environment variables from a file.
- async h2o_dashboard.util.push_notification_bar(q: Query, text: str, type: str = 'info', timeout: int = 5, buttons: List[str] | None = None, position: str = 'top-right', events: List[str] | None = None, name: str | None = None) None [source]
- Notification Bar Arguments:
- text
The text displayed on the notification bar.
- type
The icon and color of the notification bar. Defaults to ‘info’. One of ‘info’, ‘error’, ‘warning’, ‘success’, ‘danger’, ‘blocked’. See enum h2o_wave.ui.NotificationBarType.
- timeout
How long the notification stays visible, in seconds. If set to -1, the notification has to be closed manually. Defaults to 5.
- buttons
Specify one or more action buttons.
- position
Specify the location of notification. Defaults to ‘top-right’. One of ‘top-right’, ‘bottom-right’, ‘bottom-center’, ‘bottom-left’, ‘top-left’, ‘top-center’. See enum h2o_wave.ui.NotificationBarPosition.
- events
The events to capture on this notification bar. One of ‘dismissed’.
- name
An identifying name for this component.