-
Hi guys, I implemented the lr-data-output block, but I receive no console log, when uploading files.
How do I pick up the data from the block? When using the event listener I see the data in my console. But I would like to use the block system.
Hope somebody can help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @mnoesel, we forgot to update some examples after the API update. Here are the actual You need to update these attributes:
<lr-data-output use-console use-event use-template="#output-template" class="lr-wgt-common">
</lr-data-output>
<template id="output-template">
<h3>Files uploaded:</h3>
<div repeat="filesData">
<lr-img width="300" set="@uuid: uuid"></lr-img>
<div><a set="@href: cdnUrl">{{cdnUrl}}</a></div>
</div>
</template> |
Beta Was this translation helpful? Give feedback.
Hey @mnoesel,
we forgot to update some examples after the API update. Here are the actual
lr-data-output
docs - https://uploadcare.github.io/blocks/docs/output/You need to update these attributes:
console
->use-console
fire-events
->use-event
from
->ctx-name
"item-template"="html"
->"use-template"="#template_id"