Progress

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

Installation

npx nx g @spartan-ng/cli:ui progress

Usage

import { HlmProgressDirective, HlmProgressIndicatorDirective } from '@spartan-ng/helm/progress';
<hlm-progress [value]="value">
   <hlm-progress-indicator />
</hlm-progress>

Brain API

BrnProgressIndicator

Selector: brn-progress-indicator

BrnProgress

Selector: brn-progress

ExportAs: brnProgress

Inputs

PropTypeDefaultDescription
value number | null | undefined undefined The current progress value.
max number 100 The maximum progress value.
getValueLabel BrnProgressLabelFn (value, max) => `${Math.round((value / max) * 100)}%` A function that returns the label for the current progress value.

Helm API

HlmProgressIndicator

Selector: [hlmProgressIndicator],hlm-progress-indicator

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmProgress

Selector: hlm-progress,[hlmProgress]

Inputs

PropTypeDefaultDescription
class ClassValue --

Examples

Indeterminate

Radio Group Popover