-1

Using below component for content review:

<aura:component  
implements="forceCommunity:availableForAllPageTypes,force:hasRecordId" access="global" controller="PC_SalesTilesDetails">
<aura:attribute name="id" type="String"/> 
<aura:attribute name="recordId" type="String" />
<aura:attribute name="ContentdocIds" type="Id" /> 
<aura:handler name="init" value="{!this}" action="{!c.doinit}"/>
<lightning:fileCard fileId="{!v.ContentdocIds}"/>

I need to avoid that click it should directly open it like this:

Trying to achieve following functionality

  • Iam opening document in new Tab.
  • trying to avoid click functionality.
  • If I come to new tab It should open in largesize

Anyone please help me

0

Use lightning file card inside a modal popup. so onclick it will show preview of that file. refer this http://sfdcmonkey.com/2018/10/29/open-files-lightning-component/ in this they explained how to get file preview.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.