Skip to content
OGE logoOGE

Progress & Loading API

Full surface of the loading trio: the linear oge-progress-bar, the ring oge-load-indicator, the oge-load-panel overlay, the oge-skeleton placeholder and their config providers.

Properties Events Types

OgeProgressBar

oge-progress-bar

Properties 11

Name Type DefaultDescription
valuenumber | nullnullCurrent value; null renders the indeterminate sliding bar — and aria-valuenow is then omitted entirely (the ARIA rule), never pinned to a sentinel.
min / maxnumber0 / 100Scale bounds; the fill ratio clamps into them.
type'linear' | 'circular''linear'circular draws the same aria contract as an SVG ring (Kendo's CircularProgressBar) with the label centred inside; value: null spins. bufferValue and chunkCount apply to the linear bar only. The ring geometry is ogeProgressRingGeometry in @oge-ui/behavior.
sizenumber | undefined48Ring diameter in px (type="circular" only); the centred label scales with it.
thicknessnumber | undefined4Ring stroke width in px (type="circular" only), clamped to half the size.
bufferValuenumber | undefined—Material's buffer layer — a soft second fill behind the primary one (media pre-loading behind the play position).
chunkCountnumber | undefined—Renders the bar as N discrete segments (Kendo's chunk progress bar); the filled count is the rounded ratio.
severity'accent' | 'success' | 'warning' | 'danger''accent'Fill color — the card/toast severity vocabulary; recolors the fill only.
showLabelbooleanfalseRenders the formatted value next to the bar (rounded percent by default).
formatLabel(value: number, ratio: number) => string | undefined—Formats the visible label and aria-valuetext — DevExtreme's statusFormat in the house argument order; display and announcement never diverge.
ariaLabelstring | undefined—Accessible name; the localized progress message is the fallback. A progressbar must always be named.

Events 1

Name Type Description
completedOgeProgressBarCompletedEventThe value reached max — DevExtreme's onComplete. Fired once per arrival: staying at max is silent, re-crossing after a reset fires again.

Types 3

Name Type Description
OgeProgressBarSeverity'accent' | 'success' | 'warning' | 'danger'Fill color vocabulary.
OgeProgressBarType'linear' | 'circular'Shape vocabulary of the type input.
OgeProgressBarCompletedEvent{ value: number }Payload of completed.

OgeLoadIndicator

oge-load-indicator

Properties 5

Name Type DefaultDescription
size'sm' | 'md' | 'lg''md'Ring diameter preset — 16/24/32px.
inheritSizebooleanfalseA 1em ring that scales with the surrounding font — the inside-a-button case.
severity'accent' | 'success' | 'warning' | 'danger''accent'Ring color — the card/toast severity vocabulary.
ariaLabelstring | undefined—Accessible name; the localized loading message is the fallback.

Accessibility contract

Name Type DefaultDescription
role="progressbar", no aria-valuenow——Deliberately indeterminate-only (dx, Kendo and PrimeNG all are — a circle filling toward completion is the progress bar’s job), announced without aria-valuenow per the ARIA rule. Under prefers-reduced-motion the spin slows rather than stops: a frozen ring reads as finished.

OgeLoadPanel

oge-load-panel

Properties 12

Name Type DefaultDescription
visiblebooleanfalseShows the panel — two-way ([(visible)]). The panel paints after showDelay and stays at least minDisplayTime — the timing machine is OgeLoadPanelCore in @oge-ui/behavior.
targetElement | string | undefined—The container to cover: an element or a CSS selector. undefined covers the panel’s own parent. A target that is not the parent receives the panel as its last child while shown.
fullScreenbooleanfalseCovers the viewport instead (position: fixed). Without an explicit target nothing is marked aria-busy — on the body it would also mute the live region the message goes to.
messagestring | undefined—Text under the indicator; the localized loadPanelMessage of the load-indicator messages is the fallback (default Loading…).
showIndicatorbooleantrueRenders the load indicator. Without it the message is the readable text (no aria-hidden).
showPanebooleantrueDraws the raised card behind the indicator and message.
shadingbooleantrueDims the covered area behind the pane.
position'center' | 'top' | 'bottom''center'Where the pane sits inside the covered area.
showDelaynumber0Milliseconds visible must stay true before the panel appears — a load that finishes sooner never flashes a panel.
minDisplayTimenumber0Once shown, the panel stays at least this many milliseconds.
ariaLabelstring | undefined—Accessible name of the indicator; defaults to the message.

Accessibility contract

Name Type DefaultDescription
aria-busy on the target, one announcement, no focus trap——While shown the covered container is aria-busy="true" (ref-counted; its previous value is restored), the message is announced once through the shared live announcer (never a local live region), and the shade swallows pointer input. Focus is never taken or trapped, and the container is not made inert — that would blur a focused field and drop focus to the page.

Methods 1

Name Type Description
isShown()booleanWhether the panel is currently painted — not the same as visible while a delay or minimum time runs.

Events 2

Name Type Description
shownvoidThe panel appeared (after showDelay).
hiddenvoidThe panel disappeared (after minDisplayTime). A load that ended inside the delay fires neither.

Types 1

Name Type Description
OgeLoadPanelPosition'center' | 'top' | 'bottom'Pane placement vocabulary.

OgeSkeleton

oge-skeleton

Properties 5

Name Type DefaultDescription
shape'text' | 'circle' | 'rectangle''text'What the placeholder stands in for; a text skeleton with no height derives it from the font.
animation'shimmer' | 'pulse' | 'none''shimmer'shimmer is the card/accordion moving-gradient recipe, pulse the data grid filler rows' opacity beat, none a static block.
width / heightstring | number | undefined—Numbers mean pixels; strings pass through as CSS.
linesnumber1text shape only: renders N stacked lines with the last one tapered — the card/accordion placeholder pattern as one input. Capped at 20.

Accessibility contract

Name Type DefaultDescription
aria-hidden, always——A skeleton is decoration — the loading region owns the announcement. Put aria-busy (and, where the change should be announced, a visually-hidden status text) on the container the skeleton stands in for.

Configuration

Properties 4

provideOgeProgressBarConfig()

Name Type Description
messagesOgeProgressBarMessagesEvery user-facing string: progress — the accessible name fallback (default Progress).
severity / showLabel—Defaults for the matching inputs.

provideOgeLoadIndicatorConfig()

Name Type Description
messagesOgeLoadIndicatorMessagesEvery user-facing string: loading — the accessible name fallback (default Loading) — and loadPanelMessage, the load panel’s default message (default Loading…; the load panel reads this catalog too).

provideOgeSkeletonConfig()

Name Type Description
shape / animation—Defaults for the matching inputs. Deliberately no messages block: a skeleton renders no user-facing strings — the loading region owns the announcement.