forked from ssharan199/sfdcAmplifiedDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DEMO2cmp
58 lines (53 loc) · 2.44 KB
/
DEMO2cmp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<aura:component controller="AccountController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<aura:attribute name="accounts" type="List" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<h1>Account List:</h1>
<table class="slds-table slds-table_cell-buffer slds-table_bordered">
<thead>
<tr class="slds-line-height_reset">
<th class="slds-text-title_caps" scope="col">
<div class="slds-truncate" title="ID">ID</div>
</th>
<th class="slds-text-title_caps" scope="col">
<div class="slds-truncate" title="Account Name">Account Name</div>
</th>
<th class="slds-text-title_caps" scope="col">
<div class="slds-truncate" title="Description">Description</div>
</th>
<th class="slds-text-title_caps" scope="col">
<div class="slds-truncate" title="Number Of Employees">Number Of Employees</div>
</th>
<th class="slds-text-title_caps" scope="col">
<div class="slds-truncate" title="Annual Revenue">Annual Revenue</div>
</th>
<th class="slds-text-title_caps" scope="col">
<div class="slds-truncate" title="Phone">Phone</div>
</th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.accounts}" var="account">
<tr class="slds-hint-parent">
<th data-label="ID" scope="row">
<div class="slds-truncate" title="{!account.Id}"><a href="javascript:void(0);" tabindex="-1">{!account.Id}</a></div>
</th>
<td data-label="Account Name">
<div class="slds-truncate" title="{!account.Name}">{!account.Name}</div>
</td>
<td data-label="Description">
<div class="slds-truncate" title="{!account.Description}">{!account.Description}</div>
</td>
<td data-label="Number Of Employees">
<div class="slds-truncate" title="{!account.NumberOfEmployees}">{!account.NumberOfEmployees}</div>
</td>
<td data-label="Annual Revenue">
<div class="slds-truncate" title="{!account.AnnualRevenue}">{!account.AnnualRevenue}</div>
</td>
<td data-label="Phone">
<div class="slds-truncate" title="{!account.Phone}">{!account.Phone}</div>
</td>
</tr>
</aura:iteration>
</tbody>
</table>
</aura:component>