Public events for accordion, accordion-item #4531
Labels
0 - new
New issues that need assignment.
ArcGIS Hub
Issues logged by ArcGIS Hub team members.
blocked
This issue is blocked by another issue.
enhancement
Issues tied to a new feature or request.
estimate - 3
A day or two of work, likely requires updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Description
To support programmatically focusing certain, there should be public events to notify when accordion-items are opened/closed.
Acceptance Criteria
calciteAccordionChange
event foraccordion
accordion-item
for open & closeRelevant Info
No response
Which Component
accordion, accordion-item
Example Use Case
In forms with several complex sections, there may be need to programmatically set the
active
prop of an accordion-item, e.g. to prompt the user for a required form control. If you had a piece of state with a boolean that was setting thisactive
prop, then you would need to listen for when the user clicks on an accordion-item. You can currently (at least with the React wrapper) add anonClick
event, but this would also fire when clicking anywhere inside the accordion-item's content.The text was updated successfully, but these errors were encountered: