Not able use multiple styles
See original GitHub issueDescribe the bug If we give multiple styles to an element, no style is applied to the element.
To Reproduce
Add one more style to h1
tag in [printStyle]
. e.g. [printStyle]="{h1 : {'color': 'red', 'border': '1px solid'}, h2 : {'border': 'solid 1px'}}"
Expected behavior
[printStyle]
should accept multiple styles for an element.
Screenshots stackblitz
Desktop (please complete the following information):
- Windows 10
- chrome V71, Firefox V63
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Unable to add multiple style with ngStyle - css - Stack Overflow
To use multiple ngStyles you can add a methode that return it : HTML: [ngStyle]="imageStyle()". TS: imageStyle(): object { return { height: ...
Read more >AE20200: Use multiple style.set expressions - not working
Greetings all, I'm trying to make use of the new expressions (in JavaScript mode if that helps) to parent text styles between compositions, ......
Read more >Apply multiple styles to single text selection
I'm using Word 2011 for Mac and trying to apply 2 separate (non-conflicting) styles to the same chunk of text. For example, I'd...
Read more >Styles in Figma
Hold ⌘ Command / Control and click to select multiple non-adjacent styles. Right-click the selected styles > Cut styles to add them to...
Read more >How to use multiple styles within a single paragraph in MS Word
The only way you can achieve this is through the use of Character styles. Character styles are intended for small portions of text...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@twaghmiles Now I can ensure that it works, update your
ngx-print
to1.1.4
(latest). Thank you for your support. Feel free to suggest new features, regards.@selemxmn , Its working. Thank you for quick fixes.