Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <aura:component>
- <ltng:require styles="/resource/SLDS0122/assets/styles/salesforce-lightning-design-system-ltng.css" />
- <aura:attribute name="attachments" type="Aura.Component[]" description="Array of Components for adding attachement components"/>
- <div class="slds">
- <div class="slds-publisher slds-publisher--discussion">
- <label for="comment-text-input2" class="slds-assistive-text">Write a comment</label>
- <textarea id="comment-text-input2" class="slds-publisher__input slds-textarea slds-text-longform" placeholder="Write a comment…"></textarea>
- <div class="slds-attachments">
- <!--File attachment components are added here -->
- {!v.attachments}
- </div>
- <div class="slds-publisher__actions slds-grid slds-grid--align-spread">
- <div class="slds-button slds-button--icon-container">
- <label for="attachFile">
- <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"/>
- </label>
- </div>
- <div class="slds-hide">
- <input aura:id="attachFile" id="attachFile" type="file" multiple="true" onchange="{!c.displayAttachments}"/>
- </div>
- <button class="slds-button slds-button--brand" onclick="{!c.buttonClicked}">Comment</button>
- </div>
- </div>
- </div>
- </aura:component>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement