Skip to content

Commit

Permalink
fix: updating custom image component
Browse files Browse the repository at this point in the history
  • Loading branch information
anagarwa committed Jul 23, 2024
1 parent 26ca603 commit 7e8ca53
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
16 changes: 14 additions & 2 deletions component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,25 @@
{
"title": "Image",
"id": "image",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/image/v1/image",
"template": {}
}
}
}
},
{
"title": "Image Slide",
"id": "image-slide",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/image/v1/image",
"template": {
"name": "Image",
"model": "image",
"name": "Image Slide",
"model": "image-slide",
"image": "/content/dam/aem-xwalk-test-harsh/content-at-scale.png",
"imageAlt": "Sample Image"
}
Expand Down
2 changes: 1 addition & 1 deletion component-filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{
"id": "image-carousel",
"components": [
"image"
"image-slide"
]
},
{
Expand Down
19 changes: 19 additions & 0 deletions component-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@
}
]
},
{
"id": "image-slide",
"fields": [
{
"component": "reference",
"valueType": "string",
"name": "image",
"label": "Image",
"multi": false
},
{
"component": "text",
"valueType": "string",
"name": "imageAlt",
"value": "Default alt",
"label": "Alt Text"
}
]
},
{
"id": "button",
"fields": [
Expand Down

0 comments on commit 7e8ca53

Please sign in to comment.