@ecl-twig/ec-component-ordered-list

2.39.0 • Public • Published

ECL-Twig Ordered list component

npm package: @ecl-twig/ec-component-ordered-list

npm install --save @ecl-twig/ec-component-ordered-list

Parameters

  • "items" (array) (default: [])
    • "label" (string)
    • "nested" (optional) Object of type Ordered List
  • "extra_classes" (optional) (string) (default: '') Extra classes (space separated)
  • "extra_attributes" (optional) (array) (default: []) Extra attributes
    • "name" (string) Attribute name, eg. 'data-test'
    • "value" (string) Attribute value, eg: 'data-test-1'
  • "_compliance_" (boolean) (default: false) Activates debug.

Example:

{% include '@ecl-twig/ec-component-ordered-list/ecl-ordered-list.html.twig' with { 
  items: [ 
    { 
      label: 'Jobs, growth and investment', 
      nested: [ 
        { 
          label: 'Investment Plan for Europe: the Juncker Plan', 
        }, 
        { 
          label: 'European Semester', 
        } 
      ] 
    }, 
    { 
      label: 'Digital single market', 
    }, 
    { 
      label: 'Energy union and climate', 
      nested: [ 
        { 
          label: 'Security, solidarity and trust', 
        }, 
        { 
          label: 'A fully-integrated internal energy market', 
        }, 
        { 
          label: 'Energy efficiency', 
        } 
      ] 
    } 
  ]  
} %}

Package Sidebar

Install

npm i @ecl-twig/ec-component-ordered-list

Weekly Downloads

5

Version

2.39.0

License

EUPL-1.1

Unpacked Size

17.6 kB

Total Files

4

Last publish

Collaborators

  • yhuard
  • planctus
  • kalin.chernev