Skip to content

No console output with <lr-data-output> #334

Answered by nd0ut
mnoesel asked this question in blocks
Discussion options

You must be logged in to vote

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"

<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>

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mnoesel
Comment options

@nd0ut
Comment options

@mnoesel
Comment options

Answer selected by mnoesel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
blocks
Labels
None yet
2 participants