function in column.data: argument meta is null when type is "editor"

function in column.data: argument meta is null when type is "editor"

nampordnampord Posts: 5Questions: 3Answers: 0
edited September 2018 in Free community support

I have a column for which I set

column.data : function(row,type,set,meta)

for the cell I have an inline editor.

The meta argument is set to {row:n,col:m,settings:object} as described in the documentation when type is "display". However when the cell is edited ( type = "editor") the meta argument is null.

Is this is bug ? Or is there a different way to receive the cell reference when type is "editor"

Answers

  • allanallan Posts: 62,992Questions: 1Answers: 10,367 Site admin

    No this isn't a bug - although I can see it being a bit on the confusing side. The data method allows access to the data from anything calling for it, but Editor doesn't directly have access to the rest of the row (it could infer it, but currently doesn't for the meta parameter).

    What is it that you need to do?

    Allan

  • nampordnampord Posts: 5Questions: 3Answers: 0

    When in the data function I need to know the column I am on , because my row data contains an array of child-information, which I am pulling into different columns. ( child1 data goes into colums 2-5, child2 into column 6-9 and so on)

This discussion has been closed.