Sort with pictures “alt-tag”
-
Hello,
i have pictures and want to sort, i have found:
“columnDefs”: [ { “visible”: false, “targets”: [ 2 ] }, { “orderData”: [ 2 ], “targets”: [ 3 ] } ]
The 2 (appearing twice is a reference to the third column (in this example). As counting the columns starts with 0, this would have to be adjusted to “(number of the new column) – 1”. The 3 references the column with the images, and that would have to be adjusted to “(number of the image column) – 1”.
Sorry, I dont understand.
My pictures are at A2 A3 and so on.– A B C D E
1
2 x
3 xthat is:
– 0 1 2 3 4
0
1 x
2 xI start at row 1 (normally 2) and at column 0 (normally A).
So this must be [ 0 ] [ 0 ] and [ 1 ]? wrong? “ok thats wrong, i have tested”How does the pictures sort? Can i sort with the image-alt-tag as alt=”1″, alt=”2″ and so on, so must be the code: “columnDefs”: [ { “visible”: false, “alt”: [ 0 ] }, { “orderData”: [ 0 ], “alt”: [ 1 ] } ]
Thanks for help and best regards,
MichaelThe page I need help with: [log in to see the link]
- The topic ‘Sort with pictures “alt-tag”’ is closed to new replies.