Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Having trouble customizing Accordion #2286

Closed
@kosz

Description

@kosz

So the issues i'm having come from the (reasonable) need of wanting to customize the Accordion header.

Angular-ui-bootstrap seems to wrap the bootstrap divs, and restrict access to do simple reasonable things.

The content of the accordion-heading seems to be forced into an H4, and a onclick event is added that ONLY and ALWAYS toggles the open state of the panel.

What I'd like to achieve is :

  • have a table or a set of divs/spans in the accordion-heading instead of the H4
  • have buttons in the accordion-heading that have their own onclick events and do not trigger the toggling of the accordion pane ( as an example, i'd like to put a Remove button on the accordion pane, and when the Remove button is clicked, I remove the pane instead of toggling it )

So far I've been unsuccessful in achieving this behaviour with Angular-ui-bootstrap, even though this behaviour should be quite reasonable and straight forward to implement.

Am I missing something here, or is this a design flaw in the Accordion directive ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions