adopted-ember-addons / adopted-ember-addons/ember-drag-drop

Example for Sorting Table Rows

Đang mở
#12 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
5
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I added this package to my project with the goal of making a `` element's rows sortable via drag and drop to change the priority of tasks in the list.

It is possible to implement for this use case but it's a little less than self explanatory due to the way tables decide what's going on with ``'s and `` and each `` would belong inside a ``, but that screws up the table and smushes everything into the first cell because of the container that the component puts around its contents.

The valid template looks like this for my solution:

```

`'s

initially, I thought `` would belong inside the `
{{#each this.model as |dataObject|}}

{{/each}}



Column 1
Column 2





{{dataObject.id}}




{{dataObject.name}}



```

It took some fiddling and I couldn't find a directly applicable example, so if others think that this might be useful to add as an example, I wouldn't mind coding it up. Perhaps a brief explanation in the readme as well.

It could also just be a me issue and no one else would've struggled with this, in which case, just let me know 😅

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.