ngb-accordion or ngb-panel type has no effect
See original GitHub issueI expect the following to show a success style but it doesn’t. I have bootstrap v4 installed. (Note that when I open the plunkers in the doc I can’t get them to work. Adding the ng-bootstrap package fails.)
<ngb-accordion class="col-md-12" type="success">
<ngb-panel>
<ng-template ngbPanelTitle>
title
</ng-template>
<ng-template ngbPanelContent>
blah blah
</ng-template>
</ngb-panel>
</ngb-accordion>
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
angular 13 accordion does not work with custom component
NgbAccordion expects NgbPanel as its direct ContentChild: ... NgPanel is no more a ContentChild of NgbAccordion and hence it doesn't work.
Read more >Accordion - Angular powered Bootstrap
Accordion is a collection of collapsible panels (bootstrap cards). ... Has no effect if the panel is already expanded or disabled. ... Type:...
Read more >UNPKG - @ng-bootstrap/ng-bootstrap
15, * A directive that wraps an accordion panel header with any HTML markup and a ... 150, * Has no effect if...
Read more >@ng-bootstrap/ng-bootstrap@14.0.0 - jsDocs.io
Toggles a panel with the given id. Has no effect if the panel is disabled. class NgbAccordionConfig.
Read more >Angular ng Bootstrap Accordion Component - GeeksforGeeks
Angular ng bootstrap is a bootstrap framework used with angular to create ... < ngb-accordion # acc = "ngbAccordion" ... < ngb-panel >....
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 FreeTop 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
Top GitHub Comments
card-warning
,card-success
, etc styles are not working anymore. Customization is done via utility classes: https://getbootstrap.com/docs/4.0/components/card/#card-stylesAccordion has
@Input() type;
that is not working anymore (it was already broken withbeta.1
)From
accordion.ts
template:Now you can separately customize text, say with
text-white
, background withbg-primary
and border withborder-primary
.Oh, I see. Here is a reproduce scenario: http://plnkr.co/edit/Cnas1aOupptPQhfGZ0dx?p=preview