kpammi

caseFeedAttachment

Mar 5th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.18 KB | None | 0 0
  1. <aura:component>
  2.     <!-- Handler -->
  3.     <aura:Handler name="init" value="{!this}" action="{!c.doInit}" />
  4.     <aura:registerEvent name="removeAttachment" type="c:removeAttachment"/>
  5.     <aura:attribute name="filename" type="String" description="File name of the Attachement"/>
  6.     <aura:attribute name="svgPath" type="String" description="Resource path for the file type icon"/>
  7.     <div class="slds-attachments__item slds-box slds-box--x-small slds-theme--shade">
  8.         <div class="slds-grid slds-grid--align-spread">
  9.             <div class="slds-media">
  10.                 <div class="slds-media__figure">
  11.                     <span class="slds-icon_container">
  12.                         <c:svgIcon svgPath="{!v.svgPath}" class="slds-icon slds-icon--small" name="{!v.filename}" />
  13.                     </span>
  14.                 </div>
  15.                 <div class="slds-media__body">
  16.                     <a href="#void" title="{!v.filename}">{!v.filename}</a>
  17.                 </div>
  18.             </div>
  19.             <button class="slds-button slds-button--icon-bare" onclick="{!c.fireRemoveAttachmentEvt}">
  20.                 <c:svgIcon svgPath="/resource/SLDS0122/assets/icons/utility-sprite/svg/symbols.svg#close" class="slds-button__icon slds-icon--small" assistiveText="Remove this attachment" name="removeButton"/>
  21.             </button>
  22.         </div>
  23.     </div>
  24. </aura:component>
Add Comment
Please, Sign In to add comment