-
-
Notifications
You must be signed in to change notification settings - Fork 101
Global Options
Murhaf Sousli edited this page Oct 14, 2024
·
2 revisions
You can customize the default configuration for all progress bars using the provideNgProgressOptions
function.
Example:
import { provideNgProgressOptions } from '@ngx-progressbar';
bootstrapApplication(AppComponent, {
providers: [
provideNgProgressOptions({
trickleSpeed: 200,
min: 20,
flat: true
})
]
})
NgProgressOptions API
Name | Default | Description |
---|---|---|
direction | ltr+ | Progress bar direction (ltr+ , ltr- , rtl+ , rtl- ). |
trickleSpeed | 300 | Progress trickling speed in ms. |
trickleFunc | Function | A function that returns the trickling amount. |
debounceTime | 0 | Debounce time before starting the progress bar in ms. |
speed | 200 | Transition speed in ms. |
min | 8 | Progress initial starting value. |
max | 100 | Progress maximum value. |
spinner | false | Display spinner. |
spinnerPosition | right | Spinner position. (right , left ). |
relative | false | Position the progress bar relative to parent. |
flat | false | Flat style (disables meteor style). |
Become a sponsor and get your logo on our README on GitHub and the front page of https://ngx-progressbar.netlify.com/.
Become a backer and get your logo on our README on GitHub.
Older version (v12)
-
Automagic features
Older version (v11)
-
Automagic features