-
Notifications
You must be signed in to change notification settings - Fork 3
/
boatSearchResults.html
32 lines (32 loc) · 1.56 KB
/
boatSearchResults.html
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
<template>
<lightning-tabset variant="scoped">
<lightning-tab label="Gallery">
<template if:true={boats}>
<div class="slds-scrollable_y">
<!-- layout horizontally aligned to the center -->
<!-- layout allowing multiple rows -->
<lightning-layout horizontal-align="center" multiple-rows>
<!-- template looping through each boat -->
<template for:each={boats} for:item="boat">
<!-- lightning-layout-item for each boat -->
<lightning-layout-item key={boat.Id} padding="around-small" size="12" small-device-size="6" medium-device-size="4" large-device-size="3">
<!-- Each BoatTile goes here -->
<c-boat-tile boat={boat} onboatselect={updateSelectedTile} selected-boat-id={selectedBoatId}></c-boat-tile>
</lightning-layout-item>
</template>
</lightning-layout>
</div>
</template>
</lightning-tab>
<lightning-tab label="Boat Editor">
<!-- Scrollable div and lightning datatable go here -->
<div class="slds-scrollable_y">
<lightning-datatable key-field="Id" data={boats} onsave={handleSave} columns={columns} draft-values={draftValues} hide-checkbox-column></lightning-datatable>
</div>
</lightning-tab>
<lightning-tab label="Boats Near Me">
<!-- boatsNearMe component goes here -->
<c-boats-near-me boat-type-id={boatTypeId}></c-boats-near-me>
</lightning-tab>
</lightning-tabset>
</template>