GithubHelp home page GithubHelp logo

jbomhold3 / blazorsortablejs Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 10.0 11.81 MB

BlazorSortable JS

Home Page: https://jbomhold3.github.io/BlazorSortableJS/

HTML 38.58% C# 23.05% CSS 35.12% JavaScript 3.25%

blazorsortablejs's People

Contributors

ctrl-alt-d avatar dependabot[bot] avatar jbomhold3 avatar kinetiq avatar veithbuergerhoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blazorsortablejs's Issues

Known Bugs

  • Dynamicly adding and removing sortable elements can cause odd errors on the display. However, it looks like the data is fine. This does not affect anything else

Can this support nesting in its current state? Also: is this still being maintained?

First off, thanks for the great project. As a heads up, I got this to work, but man... Please update the readme, it's going to turn away 95% of people who come here because it is fully broken. I submitted a pull request to help but it needs a little bit more. You have, for instance, resultsList but it isn't used.

It was only after I dug into DemoCore > Index.razor that I realized this project actually works, and saw an example showing how to do something useful with it (sort something and then work with the sorted list in C#).

Two questions for you:

  • Please let me know if you still intend to work on this.
  • I'm about to go down a rabbit hole trying to get nested sorting to work 3 levels deep with around 80 items. Also, a lot of items will have editable fields. Please let me know if you see some reason why that is not possible, and if you have any code that might help I would sure appreciate it.

Thanks :)

[Bug] AddItemAsync add item in wrong index.

Steps to reproduce.

  • Init collection with 3 items : 1,2,3
  • Some sort elements: GetDataAsync return 2,3,1
  • After add new element GetDataAsync return 2,3,4,1 instead 2,3,1,4

After use AddItemAsync should I use ResycAsync? Because without it application throw exception.

How to get notified if item added

Hi

First of all, thank you very much for your work on this project.

In the demo - Disabling Sorting - how can I read this change in the code block of the Razor page when I have dropped an object onto the right side (in order to save it in a database), or how can I do it when an object is deleted, as my objects also have a delete button?

Best regards,

Add eventcallback on Sortable

Add A callback on the Sortable component to trigger when the items have changed. which is especially useful for multiple list.

[Parameter]
public EventCallback OnDataChanged { get; set; }

which is called similar to the ParentSortable.OnDataChanged

TypeError: Converting circular structure to JSON

Test2.razor.txt
When Dragging an item from one list to another I receive this error:

Uncaught (in promise) TypeError: Converting circular structure to JSON
--> starting at object with constructor 'HTMLUListElement'
| property 'Sortable1624131722013' -> object with constructor 'Rt'
--- property 'el' closes the circle
at JSON.stringify ()
at p (blazor.server.js:1)
at Object.e.invokeMethodAsync (blazor.server.js:1)
at Rt.opt.onMove (BlazorSortableJs.js:152)
at Xt (Sortable.min.js:2)
at Rt._onDragOver (Sortable.min.js:2)
at HTMLDocument.Pt (Sortable.min.js:2)

Better Demo Page

The Demo page could use some love to better showcase functionality.

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.