Coder Social home page Coder Social logo

Comments (9)

Zicrael avatar Zicrael commented on May 27, 2024 1

@kapilpundit
FIXED in v2.5.0.
Now you can get submit or cancel deleting item. There are 3 new events instead old one.
Example:

  (onStartDeleteItem)='onStartDelete($event)'
  (onFinishDeleteItem)='onFinishDelete($event)'
  (onCancelDeleteItem)='onCancelDelete($event)'

removed event: onremoveitem

from ngx-tree-dnd.

Zicrael avatar Zicrael commented on May 27, 2024 1

You can check the live example in:
https://stackblitz.com/edit/ngx-tree-dnd
Hope you enjoy it. Thank you for the star.

from ngx-tree-dnd.

kapilpundit avatar kapilpundit commented on May 27, 2024 1

Excellent work @Zicrael . Is there a way I can open my own modal div or a popup instead of the confirmation alert box? That would be great as I would like to show some informative message to the user for taking there consent to delete a node in the tree. Thanks.

from ngx-tree-dnd.

Zicrael avatar Zicrael commented on May 27, 2024

Hi @kapilpundit , okay this one not so hard, but any ideas about confirmation before remove child? modal or just alert or ...?

from ngx-tree-dnd.

sarahm7 avatar sarahm7 commented on May 27, 2024

i would like to know as well if we can override the alert message here. thanks!

from ngx-tree-dnd.

hirenkukadiya avatar hirenkukadiya commented on May 27, 2024

@sarahm7 you can override message from the script file. find msg and replace it in file.

from ngx-tree-dnd.

sarahm7 avatar sarahm7 commented on May 27, 2024

sorry what do you mean @hirenkukadiya ? i meant the same as @kapilpundit sorry for the confusion.

from ngx-tree-dnd.

hirenkukadiya avatar hirenkukadiya commented on May 27, 2024

@sarahm7 just find "Do you really want to delete" in script and replace it.

from ngx-tree-dnd.

kumarant avatar kumarant commented on May 27, 2024

Hi @hirenkukadiya @Zicrael
is there a way to disable the confirmation alert dialog box on delete

from ngx-tree-dnd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.