Created
December 30, 2023 15:23
-
-
Save svierk/55cb985713b2392d99a7d6b9319f61fc to your computer and use it in GitHub Desktop.
HTML Template for Drag & Drop Demo LWC | Dropzone
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
<article | |
class="slds-card dropzone card-height" | |
ondragover={handleDragOver} | |
ondragleave={handleDragLeave} | |
ondrop={handleDrop} | |
> | |
<div class="slds-card__header slds-grid"> | |
<header class="slds-media slds-media_center slds-has-flexi-truncate"> | |
<div class="slds-media__figure"> | |
<span class="slds-icon_container"> | |
<lightning-icon | |
icon-name="utility:table" | |
alternative-text="utility:table" | |
title="Drop" | |
size="small" | |
></lightning-icon> | |
</span> | |
</div> | |
<div class="slds-media__body"> | |
<h2 class="slds-card__header-title">Dropzone</h2> | |
</div> | |
</header> | |
</div> | |
<div class="slds-card__body"> | |
<div class="datatable-height"> | |
<lightning-datatable | |
key-field="id" | |
columns={columns} | |
data={data} | |
hide-checkbox-column | |
></lightning-datatable> | |
</div> | |
</div> | |
</article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment