Skip to content

rtk-draft-attachment-view

Last updated View as MarkdownAgent setup

A component which renders the draft attachment to send

Properties

Property Type Required Default Description
attachment { type: 'image' | 'file'; file: File; } - Attachment to display
iconPack IconPack1 defaultIconPack Icon pack
t RtkI18n1 useLanguage() Language

Usage Examples

Basic Usage

<rtk-draft-attachment-view></rtk-draft-attachment-view>

With Properties

<rtk-draft-attachment-view>
</rtk-draft-attachment-view>
<script>
  const el = document.querySelector("rtk-draft-attachment-view");

  el.attachment= {};
</script>

Was this helpful?