Public API for panel state
brenna opened this issue · 2 comments
brenna commented
use case: detecting if any panels in a group have been opened (for conditionally displaying a "collapse all" button)
options:
isAnyOpen(groupName)
- boolean flag specific to this use casegetPanelStates(groupName)
- expose an array of state data (probably just panel name andisOpen
) and let consumer compute a flag. This could accommodate additional use cases, but also exposes more data publicly.
cc @ryanto @samselikoff
msalahz commented
any updates about that? I need to know if panel is open or not in my template?