adopted-ember-addons/ember-collapsible-panel

Public API for panel state

brenna opened this issue · 2 comments

use case: detecting if any panels in a group have been opened (for conditionally displaying a "collapse all" button)

options:

  1. isAnyOpen(groupName) - boolean flag specific to this use case
  2. getPanelStates(groupName) - expose an array of state data (probably just panel name and isOpen) and let consumer compute a flag. This could accommodate additional use cases, but also exposes more data publicly.
    cc @ryanto @samselikoff

any updates about that? I need to know if panel is open or not in my template?

See Issue #28

Edit node_modules/ember-collapsible-panel/addon/components/cp-panel/template.hbs like this.