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
* Fixed issue with ngClass for default node and value classes which was occuring in Ivy by switching to class. Added positive and negative state classes. Updated documentation.
* Added ngAfterViewInit for initial positivity check
* updated package version manually to be ready for publish
* updated README checklist to accurately reflect todos
@@ -78,11 +79,47 @@ import { ValueFlashModule } from 'angular-value-flash';
78
79
</value-flash>
79
80
```
80
81
82
+
There are a number of classnames you can use to add your own styles. This [Storybook example](https://60be66a91843f400393d1747-pyomkpvvzt.chromatic.com/?path=/story/components-value-flash--make-it-nice) demonstrates a potential custom styling. Find the story source code [here](https://github.com/lab49/angular-value-flash/blob/main/stories/ValueFlash.stories.ts#L86) and the SCSS used [here](https://github.com/lab49/angular-value-flash/blob/main/stories/styles/make-it-nice-theme.scss). Below is a list of all the available classnames, with the default `.rvf_Flash` prefix.
83
+
84
+
_Note that due to view encapsulation, these styles will need to be included in global CSS/SCSS files, so be sure to properly scope the styles using wrapper `div` elements or by using specific prefixes as input to the `value-flash` component._
85
+
86
+
| Class | Description |
87
+
| --- | --- |
88
+
| `.rvf_Flash` | Root DOM node |
89
+
| `.rvf_Flash__value` | Rendered value, direct (and only) child of the root node. |
90
+
| `.rvf_Flash--flashing` | Applied only when the component is in the flashing state. |
91
+
| `.rvf_Flash--flashing-up` | Applied when flashing 'up'. |
92
+
| `.rvf_Flash--flashing-down` | Applied when flashing 'down'. |
93
+
| `.rvf_Flash--positive` | Applied when the value is positive. |
94
+
| `.rvf_Flash--negative` | Applied when the value is negative. |
95
+
96
+
81
97
###### [⇡ Top](#table-of-contents)
82
98
83
99
## API
84
100
85
-
_To be completed_
101
+
### Directives
102
+
103
+
#### `ValueFlashComponent`
104
+
105
+
Selector: `value-flash`
106
+
107
+
Exported As: `ValueFlashComponent`
108
+
109
+
#### Properties
110
+
111
+
| Name | Default | Description |
112
+
| --- | --- | --- |
113
+
| @Input() downColor: string | 'red' | Color value when the component flashes 'down'. |
0 commit comments