-
-
Notifications
You must be signed in to change notification settings - Fork 28
multi row reorder enhancement #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
LPmaverick
commented
Mar 21, 2017
- allow for multiple rows to be reordered at once
- new default option, placeholder
- includes test html
- allow for multiple rows to be reordered at once - includes test html
|
This looks like a fantastic enhancement - thank you. Couple of things:
The XML examples can be built using the method described here. |
|
1. yes
2. hopefully it will. I tried to keep it similar to how the rest of the
logic was handled.
3. Yeah sorry wasn't sure how you were doing all that. Haven't worked with
much outside of basic HTML/JSP.
…On Wed, Mar 22, 2017 at 11:29 AM, Allan Jardine ***@***.***> wrote:
This looks like a fantastic enhancement - thank you.
Couple of things:
1. Are you happy for this to be included under the MIT license?
2. I'm not sure how well this will work with the Editor integration -
I'll check that out
3. The demo HTML should really be an XML file similar to the others in
the examples directories. That way the demo HTML doesn't need to be
committed into every file.
The XML examples can be built using the method described here
<https://datatables.net/manual/development/build>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY1_bxviCwlffq6e59rDOC9G3f24-UP9ks5roUxygaJpZM4Mj9EH>
.
|
|
Did this ever get approved, tested, and put into build?
On Wed, Mar 22, 2017 at 12:27 PM, jason gordon <jr42.gordon@gmail.com>
wrote:
… 1. yes
2. hopefully it will. I tried to keep it similar to how the rest of the
logic was handled.
3. Yeah sorry wasn't sure how you were doing all that. Haven't worked
with much outside of basic HTML/JSP.
On Wed, Mar 22, 2017 at 11:29 AM, Allan Jardine ***@***.***>
wrote:
> This looks like a fantastic enhancement - thank you.
>
> Couple of things:
>
> 1. Are you happy for this to be included under the MIT license?
> 2. I'm not sure how well this will work with the Editor integration -
> I'll check that out
> 3. The demo HTML should really be an XML file similar to the others
> in the examples directories. That way the demo HTML doesn't need to
> be committed into every file.
>
> The XML examples can be built using the method described here
> <https://datatables.net/manual/development/build>.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#17 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AY1_bxviCwlffq6e59rDOC9G3f24-UP9ks5roUxygaJpZM4Mj9EH>
> .
>
|
|
Not yet, sorry. I've not managed to find time to review it and its implications properly yet. It is still in my inbox so I will get around to it though. |
|
@DataTables There are any news about merging this pull request, or it has any chances to be merged any time soon? |
|
Hi - sorry I've been so long with this one. I've just tried it out and it looks great. I'm not going to merge it in immediately as there are two things I'd like to modify a little:
That said, this will be a really excellent addition and thanks for contributing it @LPmaverick! Because its a new feature I'm going to publish 1.2.4 without it, but when I get a chance I'll circle back and make those changes for 1.3.0. |
|
The reason for the jumping is to group all of the selected rows together if they happen to be spread out, and in the same order as they appear in the list. |
|
How is this coming along? This is referring to this forum update. |
|
I'm afraid I've not yet made time to look into this PR. Apologies, its one of those things that keeps slipping away from me with other things going on. It is here though, so I will get to it! |
|
Do you have any expected date when this wil be implemented? Because right now I'm not sure what to do. Just wait until release, or update the code myself so at least I can use it. I prefer option 1, but if it takes another couple of months I'll go for option 2. |
|
I'd go for option 2 at the moment. My support backlog at the moment is enormous! |
|
WHY THE HECK THIS ISN'T MERGED STILL? You had an "normous support backlog" for 7 years????????? |
|
I haven't prioritised it over other work I've been doing. It can't be merged at the moment, but you are welcome to update it and patch to address the issue about it making Select a hard dependency, which I don't want at this time for this extension. |
Well, time to prioritise it, since every major serious grid implementation in commercial/freeware frameworks supports it, or at least provide a working sample. https://cdn.datatables.net/1.10.17/ I can find this and "I see DataTables CDN files for DataTables 1.10.17. This software was originally released on ." with a missing date....
Me? Lol.... I didn't knew I was a maintainer of this library Anyway it's fine for me to get it working on a older library, |
|
It looks like 1.10.14 around that time: https://cdn.datatables.net/1.10.14/ . Of course you aren't the maintainer of the library - I am. However, it is open source and if it is a feature you need, then you are welcome to implement it or pay someone to do so. |
Does it have a single min file or I have to add every file listed there? Trying to make it work here: |
Are the two core DataTables files you'll want. Plus jQuery (I'd imagine the latest of their 1.x series should be okay). Plus the patches RowReorder. |
https://jsfiddle.net/zvto2mx5/1/ Does not work.
Any idea? seems it doesn't get jquery or smth? The cdns are the ones you suggested |
|
You need to load jQuery before DataTables. In JSFiddle you can click and drag the jQuery resource and put it to the top of the list. |
Stupid me. Now i fixed that and all the other errors it gave, but it seems to do nothing. |
|
The github file being loaded for the JS is an HTML page. Firefox shows me:
Even using their raw option isn't enough. Instead, if I copy / paste it into the JSFiddle and also include Select from around that era, then it does something: https://jsfiddle.net/re8bjLpu/ . |
Wow, I haven't tought of checking out that one. Good spot! Thanks for now. If it's not too much work I will try to take a look into implementing in the new datatables lib and make a pull. |
|
@AllanJard other than the Select dependency concern, are you interested in a PR that is compatible with the current codebase? I'd like to get this feature merged in and I'm happy to help, if you want. |
|
Possibly yes, it depends on how invasive the changes are? I also don't want to make Select a hard dependency for this plugin. That wouldn't be pulled in I'm afraid. |
|
Perfect, I'll give it a try and create a new one as soon as possible. |
