@ecl/twig-component-ordered-list

4.7.2 • Public • Published

ECL Ordered list component

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

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

Parameters

  • "items" (array) (default: [])
    • "label" (string)
    • "nested" (optional) Object of type Ordered List
  • "variant" (optional) (string) (default: '') - Name of the variant
  • "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'

Example:

{% include '@ecl/ordered-list/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-component-ordered-list

Weekly Downloads

4

Version

4.7.2

License

EUPL-1.2

Unpacked Size

17.5 kB

Total Files

4

Last publish

Collaborators

  • papegaill
  • yhuard
  • kalin.chernev
  • weslito
  • emeryro
  • planctus