New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ecl/category-filter

Package Overview
Dependencies
Maintainers
6
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecl/category-filter

ECL Category filter

Source
npmnpm
Version
5.0.0-alpha.14
Version published
Maintainers
6
Created
Source

ECL Category filter

npm package: @ecl/category-filter

npm install --save @ecl/category-filter

Parameters

  • color_mode (string) (default: '') Name of the color mode
  • "label": (string) (default: ''): Aria label provided for accessibility
  • "id": (string) (default: randomized string): Unique id for the 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'
    • "value" (optional) (string) Attribute value, eg: 'data-test-1'

Example:

{% include '@ecl/category-filter/category-filter.html.twig' with {
  label: 'Category filter',
  id: 'unique-id',
  items: [
    {
      label: "Item 1",
      path: "example",
      children: [
        {
          label: "Item 1.1",
          path: "/example"
        },
        ...
        ]
      }
      ...
      ],
    }
  ],
  extra_classes: "ecl-category-filter-extra-class,
  extra_attributes: [
    {
      name:"data-ecl-category-filter",
    },
    ...
    ]
} %}

Keywords

ecl

FAQs

Package last updated on 24 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts