IgxBannerComponent - Support collapsed input #14890
Labels
banner
Banner component
🧰 feature-request
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Is your feature request related to a problem? Please describe.
I have a global notification banner list component. Whenever banners need to be shown, a service manages a list of banner components to put on the page. I loop through this list in the html, and render an igx-banner component for each message that needs to be shown. Looking through the source code, I don't see any way to set the initial state of the banner component to be expanded when rendered, so that I don't have to call
open()
on each individual banner after it's added to the DOM.Describe the solution you'd like
Support an input property
collapsed
getter/setter, or some other property name.Describe alternatives you've considered
Currently right now I have an effect that opens the banner whenever the viewChildren signal changes. It would be nice to not have to do this though:
The text was updated successfully, but these errors were encountered: