question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able use multiple styles

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
selemxmncommented, Dec 26, 2018

@twaghmiles Now I can ensure that it works, update your ngx-print to 1.1.4 (latest). Thank you for your support. Feel free to suggest new features, regards.

1reaction
twaghmilescommented, Dec 27, 2018

@selemxmn , Its working. Thank you for quick fixes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found