-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add items inside Section, instead of using SectionItem
This approach is more consistent with our other components such as Tabs which deals with multiple items and has a single function. This approach also avoids having to pass Accordion as reference to AccordionSection.(But having multiple functions is valid too and we might employ it in future when building quite complex JavaScript components that need to retain state in multiple places.) This commit: - Creates items inside Section init and binds them - Defines $sections at top level - Moves header related functionality to a single function
- Loading branch information
1 parent
cbb8674
commit 4fad5c1
Showing
1 changed file
with
43 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters