Skip to content
Discussion options

You must be logged in to vote

Has been solved like this, but it is a ugly Workaround, I would much prefer seperation of concerns (model/controller and view):

  1. Add this CSS Class to your attachmentTemplate button element: attachment-label, i.e.:
<div id="attachmenttemplate" class="hidden d-inline-block" style="margin-left: 5px;">
    <a class="btn btn-secondary d-flex justify-content-center align-items-center gap-1">
        <svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#download" /></svg>
        <span class="attachment-label">Download attachment</span>
    </a>
</div>
  1. Add this to your template's custom JavaScript:
// Observe attachment container for changes
const

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rugk
Comment options

rugk Feb 5, 2026
Maintainer

@cloudscape-germany
Comment options

@rugk
Comment options

rugk Feb 9, 2026
Maintainer

@cloudscape-germany
Comment options

Answer selected by rugk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants