You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,38 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [Unreleased][]
9
9
10
+
### Added
11
+
12
+
- Adding new `loadingText` attribute to be used as WAI-ARIA `aria-valuetext`. In this case, it will render the component using "Please wait ...". Otherwise, it defaults to "Loading..."
13
+
14
+
```html
15
+
<!-- Passing loading text to be used as WAI-ARIA `aria-valuetext` -->
16
+
<!-- In this case, it will render the component using "Please wait ..." -->
- Using OnPush as changeDetection mechanism into ngx-skeleton-loader component
26
+
- Adding ability to pass `false` as string or boolean (coming from variable value via binding) on `animation` attribute in `ngx-skeleton-loader` component configuration. animation will receive `false` as string when attribute field it's not using binding. Component now can receive `false` (boolean), "false" (string), or any other animation type via binding.
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -114,13 +114,18 @@ export class YourAppComponent {}
114
114
</div>
115
115
```
116
116
117
+
## WAI-ARIA values
118
+
119
+
- loadingText - _default_`Loading...`: attribute that defines the text value for `aria-valuetext` attribute. Defaults to "Loading..."
120
+
117
121
## Animations
118
122
119
123
You can also define which CSS animation you want to use - even not use any, if it's the case - in your skeleton loader by passing the options in your component via `[animation]` attribute.
120
124
121
125
### Options
122
126
123
-
-`false`: it will disable the animation;
127
+
-`"false"` (as string): it will disable the animation;
128
+
-`false` (as boolean): it will disable the animation. Animation will receive `false` as string when attribute field it's not using binding. Component now can receive `false` (boolean), "false" (string), or any other animation type via binding;
124
129
-`progress` - _default_: it will use it `progress` as animation;
125
130
-`progress-dark`: it will use it `progress-dark` as animation. Recommended if your color schema is darken;
126
131
-`pulse`: it will use `pulse` as animation;
@@ -136,6 +141,9 @@ you need to apply the style changes on the
0 commit comments