Topic: add sortable item to sortable list

famousmag priority asked 1 year ago


Hey all,

I'm trying to add a new item to sortable list. I did it by javascript/jquery but after adding the new item to the sortable list it was not working as a sortlist item (not draggable) allthough it had the sortable-item class. I tried to find a solution how to update the sortable list but could not find a related source...

Anyway is there a way to accombish this operation? * Also I would like to be able to remove sortable items as well. I suppose that there will be not a problem if I just remove the item using jquery

Any help / guiding would be much apreciated! Thanks in advance

https://mdbootstrap.com/snippets/standard/famousmag/4016776


famousmag priority answered 1 year ago


Thank you very much @kpienkowska. I tried to do some testing on removing items but with no luck... Anyway, i have to go on and I will put sortable list on the side for now and if "removeItem" method is available I will give it a try. Thank you and I wish health and success


Kamila Pieńkowska staff answered 1 year ago


You can add sortlist items with addItem() method. https://mdbootstrap.com/snippets/standard/kpienkowska/4018403

We currently do not have similar removeItem() method to remove item from sortable list. There is no alternative way to do it either. But we have this idea on our Idea list.


BaseCloud priority commented 1 year ago

HAve you worked on this yet? The removeItem function?


Grzegorz Bujański staff commented 1 year ago

We will add removeItem method as soon as possible.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: any
  • Browser: any
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes