[Ionic 2 feature] Overlays (Alert, Popover): cssClass option with support for multiple classes
See original GitHub issueFor a better and more flexible styling of my alert and popover overlays I would like to have the cssClass
option supporting multiple classes. That could be in the form of concatenated class names or as an array of class names.
Now the cssClass supportes only one string token, any space character within results in runtime exceptions (InvalidCharacterError).
So cssClass="class-1 class-2"
or cssClass=['class-1', 'class-2']
would be ideal.
Platform: Ionic 2 beta.11
Thank you!
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
ion-popover
ion -popover is a dialog that appears on top of the current page. Learn about the popover UI component and CSS custom properties...
Read more >add cssClass property to modal options · Issue #10020 · ...
Current behavior: Currently, you cannot pass in a cssClass name into the modalOptions object as you can do on alerts, popovers, etc. Expected ......
Read more >UI Bootstrap - Angular directives for Bootstrap
A lightweight, extensible directive for fancy popover creation. The popover directive supports multiple placements, optional transition animation, and more.
Read more >Modal | Components
Modals are streamlined, but flexible dialog prompts powered by JavaScript and CSS. They support a number of use cases from user notification to...
Read more >Snippets
backdropDismiss - if set to true, the modal will be dismissed when the backdrop is clicked;; componentProps - data to pass to the...
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
Thanks! I have added support for multiple classes to be passed to Popover, Action Sheet, Loading, and Toast components. It was already supported for the Alert and Picker components. I published a nightly version if you would like to test it out:
You currently can pass multiple classes, like so:
This should probably be documented better though. How are you currently trying to pass it?