-
-
Save shrutis22/0c1eefe3f85a0df39cf7267367295646 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component controller="LeadLightningKanbanController" implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" > | |
<!--Scripts--> | |
<ltng:require scripts="/resource/jQuery,/resource/jQueryUI" afterScriptsLoaded="{!c.init}"/> | |
<!--Internal Attributes--> | |
<aura:attribute name="rows" type="List"/> | |
<aura:attribute name="columns" type="List"/> | |
<aura:attribute name="scriptsLoaded" type="Boolean" default="false"/> | |
<aura:attribute name="sortableApplied" type="Boolean" default="false"/> | |
<!--Handlers--> | |
<aura:handler name="render" value="{!this}" action="{!c.applySortable}"/> | |
<!--Spinner--> | |
<lightning:spinner aura:id="spinner" alternativeText="Loading" size="large" /> | |
<!--Kanban Column Headers--> | |
<div class="slds-grid"> | |
<div class="slds-tabs--path" role="application"> | |
<ul class="slds-tabs--path__nav" role="tablist"> | |
<aura:iteration items="{!v.columns}" var="col"> | |
<li class="slds-tabs--path__item slds-is-incomplete" role="presentation"> | |
<a class="slds-tabs--path__link" tabindex="-1" role="tab" href="javascript:void(0);"> | |
<aura:if isTrue="{! !col.isDropEnabled }"> | |
<lightning:helptext content="You cannot drop cards into this column!" class="slds-m-right_small"/> | |
</aura:if> | |
<span class="slds-tabs--path__title slds-text-heading--medium">{!col.label}</span> | |
</a> | |
</li> | |
</aura:iteration> | |
</ul> | |
</div> | |
</div> | |
<!--Kanban Columns--> | |
<div class="slds-grid"> | |
<aura:iteration items="{!v.rows}" var="row"> | |
<div class="slds-col slds-lane slds-has-dividers--around-space slds-scrollable_y" data-name="{!row.key.label}" data-drop-enabled="{!row.key.isDropEnabled}"> | |
<aura:iteration items="{!row.value}" var="lead"> | |
<div class="slds-item slds-m-around--small" data-id="{!lead.Id}" data-status="{!lead.Status}"> | |
<div class="slds-tile slds-tile--board"> | |
<h3 class="slds-section-title--divider slds-m-bottom--x-small slds-title slds-theme_shade"> | |
<div class="slds-grid"> | |
<div class="slds-col"> | |
<div class="slds-m-top_x-small"> | |
<a href="{!'/' + lead.Id}" target="_blank">{!lead.Name}</a> | |
</div> | |
</div> | |
<div class="slds-col slds-text-align_right"> | |
<lightning:buttonGroup > | |
<lightning:buttonIcon iconName="utility:call" variant="border-filled" alternativeText="Log A Call" onclick="{!c.logACall}" name="{!lead.Id}" /> | |
<lightning:buttonIcon iconName="utility:event" variant="border-filled" alternativeText="Log A Meeting" onclick="{!c.logAMeeting}" name="{!lead.Id}" /> | |
</lightning:buttonGroup> | |
</div> | |
</div> | |
</h3> | |
<div class="slds-tile__detail slds-text-body--small"> | |
<p class="slds-truncate"> | |
{!lead.Title} | |
</p> | |
<p class="slds-truncate"> | |
{!lead.Company} | |
</p> | |
<p class="slds-truncate"> | |
{!lead.Email} | |
</p> | |
<p class="slds-truncate"> | |
{!lead.LeadSource} | |
</p> | |
</div> | |
</div> | |
</div> | |
</aura:iteration> | |
</div> | |
</aura:iteration> | |
</div> | |
</aura:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment