I want to target the 'cyl' column that is the number 2. But if I write
datatable(mtcars,options=list(columnDefs = list(list(visible=FALSE,targets=1)))) %>% formatPercentage(2,1)
the formatted column is 'disp' (number 3).
If I remove the visible=FALSE option, everything works fine
datatable(mtcars) %>% formatPercentage(2,1)
I think there is something to be fixed to consider the hidden columns on the formatters...
Thanks for trying :)
Max