Skip to content

Instantly share code, notes, and snippets.

@sirangisunilkumar
Created March 4, 2020 05:57
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" controller="LCCGoogleDocController">
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<aura:attribute name="gdocs" type="object[]" description="variable to hold list of existing google docs"/>
<aura:attribute name="gdocName" type="string" description="input variable to hold name of the document"/>
<aura:attribute name="gdocUrl" type="string" description="input variable to hold url of the document"/>
<aura:attribute name="columns" type="List" description="variable to hold columns name to display in the lightning table"/>
<lightning:notificationsLibrary aura:id="notifLib"/>
<lightning:button variant="success" label="Add Google Doc" title="Brand action" onclick="{!c.openmodal}" /><br/><br/>
<lightning:datatable keyField="id" data="{!v.gdocs}" columns="{!v.columns}" hideCheckboxColumn="true" wrapTextMaxLines="3"/>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment