Intercepting Drag&Drop event
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 20/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- angular, typescript
- Domaine
- frontend
Piste de recherche
Commencez par examiner l’intégration du glisser-déposer de Angular 17, l’instance dragula exposée et l’événement addComponent décrit dans l’issue. Déterminez où un drop de panneau à panneau peut être détecté et quel comportement pris en charge d’annulation ou de restauration existe. C’est terminé lorsque les drops de panneaux imbriqués sont refusés sans ajouter le composant.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Currently working on formio with angular 17. What I'm trying to achieve is that, make sure that I have some sort of a drag-drop validation.
For example; If a user happen to start dragging, lets stay, a 'Panel' component and drop it into another 'Panel' component, I would like to intercept it and not allow to user to do that action.
As far as I conclude that, formio is using dragula for managing drag and drop futures.
I have the following HTML side:
Options is currently empty and default.
On top of this, I went through the event object and manage to find dragula.
And the dragula instance is as follows;
First question is, is it possible to intercept and intervene the behavior of drag and drop in such way ? If yes, how may I achieve this goal.
Example:
Following screenshot has 2 panel components. As the 2nd panel component dropped in the first component, I would like to get the event(addComponent) and check if the parent component is a panel component as well, if yes, I would like to prevent the user to perform this addComponent event and revert it.
Any help would be appreciated, thank you in advance.
- Langage dominant
- TypeScript
- Étoiles
- 706
- Forks
- 493
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de formio/angular
-
[Question] Angular 22 Update?Ouvertequestion
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
-
[BUG] <form-builder> move icon is missingPeut-être à nouveau libre @PrathameshHegde l’a pris il y a 99 jours, et aucune pull request n’est ouverte. Ouvertebug
formio/angular#1180 · 4 commentaires · 1 personne assignée ·
-
[Question] Version 10.0Ouvertequestion
Difficulté 2/5 1-3 heures Accessibilité débutants 25/100
-
[BUG] "Left (Right-aligned)" label position causes misaligned error messages and descriptionsPeut-être à nouveau libre @Victoriya25 l’a pris il y a 363 jours, et aucune pull request n’est ouverte. Ouvertebug
-
question
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Toutes les issues de formio/angular
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
hemilabs/ui-monorepo#2711 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
code-yeongyu/senpi#6929 ·
Les mainteneurs répondent en général sous 1 jour
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
lingdojo/kana-dojo#34261 · 1 commentaire · 5 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
embedpdf/embed-pdf-viewer#1116 ·
Les mainteneurs répondent en général sous 1 jour
-
Revise communication normsOuvertecurrent task
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
Sunday-School-Software/Sunday-School-Scheduler#87 ·
Les mainteneurs répondent en général sous 1 jour