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.

ngb-accordion or ngb-panel type has no effect

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
maxokorokovcommented, Oct 23, 2017

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

Accordion has @Input() type; that is not working anymore (it was already broken with beta.1)

From accordion.ts template:

<div role="tab" [class]="'card-header ' + (panel.type ? 'card-'+panel.type: type ? 'card-'+type : '')">
  <!-- ... -->
</div>

Now you can separately customize text, say with text-white, background with bg-primary and border with border-primary.

1reaction
pkozlowski-opensourcecommented, Oct 13, 2017

Oh, I see. Here is a reproduce scenario: http://plnkr.co/edit/Cnas1aOupptPQhfGZ0dx?p=preview

Read more comments on GitHub >

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

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