-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #368 from MurhafSousli/release/12.0.0
Update documentation
- Loading branch information
Showing
13 changed files
with
143 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## Global options | ||
|
||
You can customize the default configuration for all progress bars using the `provideNgProgressOptions` function. | ||
|
||
**Example:** | ||
|
||
```ts | ||
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.* | | ||
| **ease** | linear | *Progress [ease function](http://easings.net/).* | | ||
| **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).* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Styling | ||
|
||
To customize the appearance of the progress bar, you can use the following CSS variables / classes | ||
|
||
### CSS variables | ||
|
||
| Variable name | Default value | | ||
|-----------------------------------|:--------------| | ||
| `--ng-progress-thickness` | 2 | | ||
| `--ng-progress-color` | #1B95E0 | | ||
| `--ng-progress-holder-color` | transparent | | ||
| `--ng-progress-ease` | linear | | ||
| `--ng-progress-spinner-thickness` | 2 | | ||
| `--ng-progress-spinner-spacing` | 15 | | ||
| `--ng-progress-spinner-size` | 18 | | ||
|
||
|
||
### CSS classes | ||
|
||
| Class name | Description | | ||
|------------------------------|:----------------------------------------------------------------------------------------------| | ||
| **.ng-progress-bar** | This class is applied to the host element of the progress bar. | | ||
| **.ng-progress-bar-active** | This class is applied to the host element when the progress bar is running. | | ||
| **.ng-progress-bar-wrapper** | This class is applied to the overall wrapper element that wraps the bar and the spinner. | | ||
| **.ng-bar-placeholder** | This class is applied to the direct wrapper of the progress bar. | | ||
| **.ng-bar** | This class is applied to the actual bar element that translates when the progress increments. | | ||
| **.ng-spinner** | This class is applied to the spinner wrapper element. | | ||
| **.ng-spinner-icon** | This class is applied to the spinner icon element. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e185a49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ngx-progressbar.netlify.app as production
🚀 Deployed on https://66c292a1f1bcf7158b0d5fcf--ngx-progressbar.netlify.app
e185a49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ngx-progressbar.netlify.app as production
🚀 Deployed on https://66c29741832d571290f48a36--ngx-progressbar.netlify.app