autoFill Version 2.0.0 - How to limit drag to only the horizontal? Used to be mode: "x"
autoFill Version 2.0.0 - How to limit drag to only the horizontal? Used to be mode: "x"
I'm upgrading to autoFill Version 2.0. In previous versions, to limit the user copy capabilities to copy only in the horizontal direction, you used the mode: "x". How is this now accomplished in autoFill 2.0.0? I'm not seeing it the documentation and didn't see anything similar in the code itself like the fnFillerDragMove method. I don't allow autoFill in the vertical direction so I need to prevent this from the user interface.
This question has an accepted answers - jump to answer
Answers
Hi,
There is no option in 2.0 to limit the drag to a single column or row. It wasn't something I didn't see used very often so I didn't put it into v2...
I'll look at adding it back in when the dust settles a bit more from the release.
Allan
Thanks Allan, I do appreciate the consideration for putting that feature back in. One other question, the older version also had a "complete:" method. I would use that to feature to finally submit an ajax call that would "refresh" the single row that I just used autoFill on. Is there anything similar? When all done (complete), do this method? (This was used because classes and children rows were updated based upon the autoFill results). Do it once when complete made great sense.
The
autoFill
event is now effectively the callback for the data having being filled in the table. The event seems cleaner than the callback, and increasingly I'll be moving the DataTables code towards events rather than callbacks (where suitable of course!).Regards,
Allan