@htmlbricks/hb-dialog-loader
v0.66.27
Published
Thin wrapper around `hb-dialog` that opens automatically while numeric `percentage` is non-zero and shows a Bootstrap progress bar filled to that value. Forwards `modalShow` from the inner dialog so parents can track open state; slots allow overriding the
Readme
hb-dialog-loader — dialog-loader
Category: overlays | Tags: overlays, modal, loading
What it does
Thin wrapper around hb-dialog that opens automatically while numeric percentage is non-zero and shows a Bootstrap progress bar filled to that value. Forwards modalShow from the inner dialog; slots allow overriding the dialog title.
Custom element
hb-dialog-loader
Attributes / props (snake_case)
| Property | Type | Notes |
| --- | --- | --- |
| id | string (optional) | Element identifier. |
| style | string (optional) | Inline style string. |
| title | string (optional) | Dialog title text. |
| percentage | number (required) | 0 hides/closes behavior; non-zero shows progress (per description). |
Bootstrap --bs-* vars. Slot: title. No parts in metadata.
Events (CustomEvent names)
modalShow—{ id: string; show: true }— Forwarded from innerhb-dialog.
Usage notes
- Progress UI uses Bootstrap progress component styling.
- Parent should drive
percentagefrom async task state. - Nested
hb-dialogmeans the same overlay constraints ashb-dialog. - No i18n in
docs.ts.
Minimal HTML example
<hb-dialog-loader title="Uploading…" percentage="45"></hb-dialog-loader>