Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <aura:component controller="xx_CommunityController" implements="forceCommunity:availableForAllPageTypes" access="global" >
- <aura:attribute name="hideCheckbox" type="Boolean" default="false"/>
- <aura:attribute name="viewName" type="String" default="Accounts View"/>
- <aura:attribute name="isSummaryView" type="Boolean" default="false"/>
- <aura:attribute name="logonContact" type="Contact" />
- <aura:attribute name="selectedContactId" type="String" />
- <aura:attribute name="selectedContactName" type="String" />
- <aura:attribute name="logonContactFirstName" type="String"/>
- <aura:attribute name="clientSince" type="String"/>
- <aura:attribute name="investmentAccountId" type="String" />
- <aura:registerEvent name="newInvestmentAccountId" type="c:xx_InvestmentAccountSelected" />
- <aura:registerEvent name="contactSelected" type="c:xx_ContactSelected" />
- <aura:attribute name="mydata" type="Object"/>
- <aura:attribute name="mycolumns" type="List"/>
- <aura:handler name="init" value="{! this }" action="{! c.init }"/>
- <aura:attribute name="rawData" type="Object" description="Stores the currently displayed rows of data"/>
- <aura:attribute name="activeFilter" type="string" default="all" description="The currently selected actions filter"/>
- <aura:attribute name="sortedDirection" type="string" default="asc" description="The currently selected actions filter"/>
- <aura:attribute name="contactOptions" type="List" default="[]" />
- <aura:attribute name="targetContacts" type="Map" />
- <aura:attribute name="selectedRows" type="List" />
- <aura:attribute name="AccountTypeOptions" type="List" default="[]" />
- <!--
- <aura:attribute name="contacts" type="List" />
- -->
- <aura:if isTrue="{!v.isSummaryView}">
- {!$Label.c.xx_Client_Welcome_Message} {!v.logonContactFirstName}<aura:if isTrue="{!v.clientSince}">, {!$Label.c.xx_Client_Client_Since} <lightning:formattedDateTime value="{!v.clientSince}" year="numeric"/></aura:if>
- </aura:if>
- <!-- PAGE HEADER -->
- <lightning:layout class="slds-page-header slds-page-header--object-home">
- <lightning:layoutItem >
- <lightning:icon iconName="standard:household" alternativeText="Relationship"/>
- </lightning:layoutItem>
- <lightning:layoutItem padding="horizontal-small">
- <div class="page-section page-header">
- <h1 class="slds-text-heading--label">{!$Label.c.xx_Client_Investor}</h1>
- <h2 class="slds-text-heading--medium">{!v.viewName} </h2>
- </div>
- </lightning:layoutItem>
- <!--
- <lightning:layoutItem padding="horizontal-small" flexibility="auto" size="3" smallDeviceSize="8">
- <lightning:combobox aura:id="selectContact" name="contact" label="Contact"
- placeholder="Select Contact"
- onchange="{!c.handleContactOptionSelected}"
- options="{!v.contactOptions}"/>
- </lightning:layoutItem>
- <lightning:layoutItem padding="horizontal-small" size="2">
- <lightning:button class="goButton" label="Go" onclick="{! c.handleGo }" />
- </lightning:layoutItem>
- -->
- </lightning:layout>
- <lightning:layout multipleRows="true">
- <lightning:layoutItem padding="horizontal-small" flexibility="auto, no-shrink" size="9" mediumDeviceSize="8" largeDeviceSize="3">
- <lightning:combobox aura:id="selectContact" name="contact" label="{!$Label.c.xx_Client_Contact}"
- placeholder="Select Contact"
- onchange="{!c.handleContactOptionSelected}"
- options="{!v.contactOptions}"/>
- </lightning:layoutItem>
- <lightning:layoutItem padding="horizontal-small" size="2">
- <lightning:button class="goButton" label="{!$Label.c.xx_Client_Go}" onclick="{! c.handleGo }" />
- </lightning:layoutItem>
- </lightning:layout>
- <br/>
- <!-- / PAGE HEADER -->
- <aura:if isTrue="{!v.hideCheckbox}">
- <lightning:datatable data="{! v.mydata }"
- columns="{! v.mycolumns }"
- keyField="id"
- hideCheckboxColumn="true"
- maxRowSelection="1"
- onheaderaction="{! c.handleHeaderAction }"
- onsort="{! c.updateColumnSorting }"
- />
- <aura:set attribute="else">
- <div class="slds-custom-table">
- <lightning:datatable data="{! v.mydata }"
- columns="{! v.mycolumns }"
- keyField="id"
- maxRowSelection="1"
- onrowselection="{! c.getSelectedName }"
- selectedRows="{! v.selectedRows }"
- onheaderaction="{! c.handleHeaderAction }"
- onsort="{! c.updateColumnSorting }"
- />
- </div>
- </aura:set>
- </aura:if>
- <br/>
- <aura:if isTrue="{!empty(v.mydata)}">
- <br/> {!$Label.c.xx_Client_No_Records}
- </aura:if>
- </aura:component>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement