Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(navigation-list): Using picture - FRONT-3879 #2809

Merged
merged 4 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/implementations/twig/components/navigation-list/README.md
Copy link
Contributor

Choose a reason for hiding this comment

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

the example data in the readme should be updated too

Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,23 @@ npm install --save @ecl/twig-component-navigation-list

- **"items"** (array) (default: []): array of list_illustration_item
- **"border"** (boolean) (default: false): Is there an extra border and padding?
- **"image"** (associative array) (default: {}):
- **"src"** (string) (default: ''): Path to the image
- **"alt"** (string) (default: '')
- **"picture** (associative array) (default: {}):
planctus marked this conversation as resolved.
Show resolved Hide resolved
- **"title"** (associative array) (default: {}): Predefined structure compatible with Link component
- **"description"** (string) (default: ''): Description of the navigation list
- **"links"** (array) (default: []): Array or multi array of ECL Links
- **"column"** (number) (default: 2): number of columns (2 or 3)
- **"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'

Deprecated

- **"image"** (optional) (object) (default: {}) image
- "src" (string) Image src
- "alt" (string) Image alt

<!-- prettier-ignore -->
```twig
{% include '@ecl/navigation-list/navigation-list.html.twig' with {
Expand Down
Loading