Skip to content

Commit

Permalink
feat(category-filter): Adding support for current item at init, extra…
Browse files Browse the repository at this point in the history
… attributes for the items - FRONT-4475 (#3459)

Co-authored-by: Romain Emery <emery.romain@gmail.com>
  • Loading branch information
planctus and emeryro authored Jul 3, 2024
1 parent 2418fd1 commit 4792344
Show file tree
Hide file tree
Showing 7 changed files with 583 additions and 40 deletions.
4 changes: 4 additions & 0 deletions src/implementations/twig/components/category-filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ npm install --save @ecl/twig-component-category-filter
- **"items"** (associative array) (default: {}): The tree items - format:
"label": (string) (default: '')
"path": (string) (default: '')
"current" (boolean) (default: false)
"extra_attributes" (array) (default: [])
- "children": (associative array) (optional)
"label": (string) (default: '')
"path": (string) (default: '')
"current" (boolean) (default: false)
"extra_attributes" (array) (default: [])
- **"extra_classes"** (optional) (string) (default: '') Extra classes (space separated) for the nav element
- **"extra_attributes"** (optional) (array) (default: []) Extra attributes for the nav element
- "name" (string) Attribute name, eg. 'data-test'
Expand Down
Loading

1 comment on commit 4792344

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.