Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use it with an empty dropzone? #132

Open
Traijan1 opened this issue Nov 27, 2021 · 2 comments
Open

Is it possible to use it with an empty dropzone? #132

Traijan1 opened this issue Nov 27, 2021 · 2 comments

Comments

@Traijan1
Copy link

Hello,

I began with a simple todo list in blazor and I wanted to use Drag'n'Drop. I found this repo and implemented it, but with an empty dropzone (empty list) I can't drop an item from another todo list in it.

Is there a way to implement this?

Repository owner deleted a comment from GioviQ Dec 8, 2021
@SJongbloets
Copy link

by default the class ".plk-dd-dropzone" doesn't have a height so the dropzone just isn't visible,
I've set it's height to 100% myself to match the container size it's in and then it works perfect with empty lists

@PeterPaulG
Copy link

Hi,

I changed the settings of height to a minimum of 50px and visualized it in my project with a border.
The draggable Items can be add in the empty list (according to "lastdropped" in console), but they can't be visualized in the new dropzone. They just stay in the original dropzone and the empty dropzone stays empty.

This is my dropzone with content:
<Dropzone Items="Auftrags" TItem="AuftragsKlasse" OnItemDrop="@((i)=>lastdropped = i)"> <div style="border: 2px solid black"> @context.Auftragsbezeichnung </div> </Dropzone>

This is one my empty dropzones:
<Dropzone Items="Auftrags" TItem="AuftragsKlasse" OnItemDrop="@((i)=>lastdropped = i)"> </Dropzone>

Class: Auftragsklasse
Item of Auftragsklasse: Auftrags
Property of Auftrags: Auftragsbezeichnung

Any solutions?

Thanks.

Repository owner deleted a comment from GioviQ Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants