|
5 | 5 |
|
6 | 6 | # ngx-ui-loader |
7 | 7 |
|
8 | | -A fully customizable loader/spinner and progress bar for Angular 4, 5(tested) and 6+(tested) applications - AoT compatible. |
| 8 | +An all-in-one and fully customizable loader/spinner for Angular 5+ (5+ and 6+ are tested) applications. It supports foreground, background spinner/loader and indicative progress bar. |
| 9 | + |
| 10 | +[](https://ngx-ui-loader-demo.stackblitz.io) |
9 | 11 |
|
10 | 12 | ### Features |
11 | 13 |
|
12 | 14 | * Show foreground loader with progress bar |
13 | 15 | * Show background loader with different id for different tasks |
14 | 16 | * Be able to add logo, loading text |
15 | | -* Be able to change position of spinners, logo and loading text |
16 | | -* Be able to change color and size of spinners and progress bar |
| 17 | +* Be able to change position of spinners, logo and loading text. NOTE: When they are all set to `center-center`, the gap between them are adjusted via `gap` properties. Other position types are is overlap. E.g. If the position of foreground spinner and logo are set to `bottom-center`, they are overlap each other. |
| 18 | +* Be able to change color and size of logo, spinners and progress bar |
17 | 19 | * Be able to change the direction of progress bar |
18 | 20 |
|
19 | 21 | ## Demo |
@@ -165,18 +167,22 @@ export class AppModule { } |
165 | 167 | | `bgsPosition` | *string* | optional | `bottom-right` | Background spinner postion. All available positions can be accessed via `NGX_POSITIONS` | |
166 | 168 | | `bgsSize` | *number* | optional | `60` | Background spinner size. | |
167 | 169 | | `bgsType` | *string* | optional | `rectangle-bounce`| Background spinner type. All available types can be accessed via `SPINNER_TYPES` | |
| 170 | +| | | | | | |
168 | 171 | | `fgsColor` | *string* | optional | `#00ACC1` | Foreground spinner color | |
169 | 172 | | `fgsPosition` | *string* | optional | `center-center` | Foreground spinner position. All available positions can be accessed via `NGX_POSITIONS` | |
170 | 173 | | `fgsSize` | *number* | optional | `60` | Foreground spinner size. | |
171 | 174 | | `fgsType` | *string* | optional | `rectangle-bounce`| Foreground spinner type. All available types can be accessed via `SPINNER_TYPES` | |
172 | | -| `gap` | *number* | optional | `24` | The gap between logo, foreground spinner and text when their position are `center-center` | |
| 175 | +| `gap` | *number* | optional | `24` | The gap between logo, foreground spinner and text when their positions are `center-center`| |
| 176 | +| `overlayColor` | *string* | optional | `rgba(40,40,40,.8)`| Overlay background color | |
| 177 | +| | | | | | |
173 | 178 | | `logoPosition` | *string* | optional | `center-center` | Logo position. All available positions can be accessed via `NGX_POSITIONS` | |
174 | 179 | | `logoSize` | *number* | optional | `120` | Logo size (px) | |
175 | 180 | | `logoUrl` | *string* | optional | (*empty string*) | Logo url | |
176 | | -| `overlayColor` | *string* | optional | `rgba(40,40,40,.8)`| Overlay background color | |
| 181 | +| | | | | | |
177 | 182 | | `pbColor` | *string* | optional | `#00ACC1` | Progress bar color | |
178 | 183 | | `pbDirection` | *string* | optional | `ltr` | Progress bar direction. All directions type can be accessed via `PB_DIRECTIONS` | |
179 | 184 | | `pbThickness` | *number* | optional | `5` | Progress bar thickness | |
| 185 | +| | | | | | |
180 | 186 | | `text` | *string* | optional | (*empty string*) | Loading text | |
181 | 187 | | `textColor` | *string* | optional | `#FFFFFF` | Loading text color | |
182 | 188 | | `textPosition` | *string* | optional | `center-center` | Loading text position. All available positions can be accessed via `NGX_POSITIONS` || |
|
0 commit comments