SyncMadeEasy/force-app/main/default/aura/FieldTable/FieldTable.cmp

49 lines
2.0 KiB
Plaintext

<aura:component>
<aura:attribute name="filteredData" type="Shopify_Log__c[]" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<ltng:require styles="{! $Resource. datatable + '/DataTables-1.10.16/media/css/jquery.dataTables.min.css'}"
scripts="{!join(',',
$Resource.jquery224 ,
$Resource.datatable + '/DataTables-1.10.16/media/js/jquery.dataTables.min.js')
}" afterScriptsLoaded="{!c.scriptsLoaded}"/>
<div class="slds-m-around_medium">
<table id="tableId" class="slds-table slds-table_bordered slds-table_cell-buffer" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Shopify id</th>
<th>Is Webhook</th>
<th>Is Deleted</th>
<th>JSON part 1</th>
<th>JSON part 2</th>
<th>JSON part 3</th>
<th>Created at</th>
<th>Modified at</th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.filteredData}" var="acc">
<tr>
<td>{!acc.Name}</td>
<td>{!acc.HIC_ShopifySync__Shopify_Id__c}</td>
<td>{!acc.HIC_ShopifySync__Is_Webhook__c}</td>
<td>{!acc.HIC_ShopifySync__Error_id__c}</td>
<td>JSON 1</td>
<td>JSON 2</td>
<td>JSON 3</td>
<td>{!acc.CreatedDate}</td>
<td>{!acc.LastModifiedDate}</td>
</tr>
</aura:iteration>
</tbody>
</table>
</div>
</aura:component>