columnDefs

columnDefs

zgoforthzgoforth Posts: 493Questions: 98Answers: 2

Link to test case: https://jsfiddle.net/BeerusDev/x054hvt3/18/

I am using columnDefs to try to apply a tooltip over each row with the description of the task. Currently I can't get anything to pop up.

Second part of my question is I know it only applies to each targeted column, but is it possible to make it the whole row?

or would something like this suffice:

  columnDefs: [
  {
                "targets": [2,3,4,5,6,7],
                "render": function(data, type, full, meta) {
                    return type === 'display' ? '<div title="Desrciption: ' + full.Description + '">' + data : data;
                }
            },
  ],

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949
    Answer ✓

    You defined columnDefs twice. The second is overwriting the first. Please combine them into one option and see if it works.

    The columnDefs.targets docs state to use the string "_all" to assign to all columns.

    Kevin

Sign In or Register to comment.