Created
September 18, 2018 15:04
-
-
Save choudharymanish8585/52f453bc4f1e0930480ee7c2e284dad9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 implements="force:appHostable,flexipage:availableForAllPageTypes" | |
controller="LightningMapDemoController" | |
access="global" > | |
<!-- datatable component attribute --> | |
<aura:attribute name="data" type="Object"/> | |
<aura:attribute name="columns" type="List"/> | |
<aura:attribute name="selectedRowsCount" type="Integer" default="0"/> | |
<aura:attribute name="maxRowSelection" type="Integer" default="5"/> | |
<aura:handler name="init" action="{!c.doInit}" value="{!this}"/> | |
<lightning:layout horizontalAlign="space"> | |
<lightning:layoutItem size="6"> | |
<lightning:datatable | |
columns="{! v.columns }" | |
data="{! v.data }" | |
keyField="Id" | |
hideCheckboxColumn="true" | |
onrowaction="{! c.handleRowAction }"/> | |
</lightning:layoutItem> | |
<lightning:layoutItem size="6"> | |
<!-- the map component --> | |
<div aura:id="mapContainer"> | |
<!-- We will be generating below component | |
dynamically as there will be multiple markers | |
added dynamically--> | |
<!--<lightning:map | |
aura:id="mapComponent" | |
mapMarkers="{! v.markers }" | |
zoomLevel="{! v.zoomLevel }" | |
markersTitle="{! v.markersTitle }" | |
showFooter="{ !v.showFooter }" > | |
</lightning:map>--> | |
</div> | |
</lightning:layoutItem> | |
</lightning:layout> | |
</aura:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment