Advertisement
kpammi

caseFeedPublisher

Mar 5th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.56 KB | None | 0 0
  1. <aura:component>
  2.     <ltng:require styles="/resource/SLDS0122/assets/styles/salesforce-lightning-design-system-ltng.css" />
  3.     <aura:attribute name="attachments" type="Aura.Component[]" description="Array of Components for adding attachement components"/>
  4.     <div class="slds">
  5.         <div class="slds-publisher slds-publisher--discussion">
  6.             <label for="comment-text-input2" class="slds-assistive-text">Write a comment</label>
  7.             <textarea id="comment-text-input2" class="slds-publisher__input slds-textarea slds-text-longform" placeholder="Write a comment…"></textarea>
  8.             <div class="slds-attachments">
  9.                 <!--File attachment components are added here -->
  10.                 {!v.attachments}
  11.             </div>
  12.             <div class="slds-publisher__actions slds-grid slds-grid--align-spread">
  13.                 <div class="slds-button slds-button--icon-container">
  14.                     <label for="attachFile">
  15.                         <c:svgIcon svgPath="/resource/SLDS0122/assets/icons/utility/svg/symbols.svg#attach" class="slds-button__icon slds-icon--small" assistiveText="Attach a file" name="AttachFile"/>
  16.                     </label>
  17.                 </div>
  18.                 <div class="slds-hide">
  19.                     <input aura:id="attachFile" id="attachFile" type="file" multiple="true" onchange="{!c.displayAttachments}"/>
  20.                 </div>
  21.                 <button class="slds-button slds-button--brand" onclick="{!c.buttonClicked}">Comment</button>
  22.             </div>
  23.         </div>
  24.     </div>
  25. </aura:component>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement