@adrian.szymanski I want to keep it simple, here is what I need to do.
cells:(row, column) => {
const categoryColData = instance.getDataAtCell(
row,
4
);
const isBaseRow = categoryColData
? categoryColData.includes("[", 0)
: true;
console.log(categoryColData, isBaseRow);
return isBaseRow && column === 5
? {
type: "dropdown",
source: ["formula", "input", "data", "aggregate"],
renderer: customRenderer,
}
:!isBaseRow && column === 5
?{
type: "dropdown",
source: ["formula", "input", "data"],
renderer: customRenderer,
} : {
type: "text",
renderer: customRenderer,
};
},
Now I don’t know how can I get value of column category
in cells function. in custom renderer. I tried to get value but it is giving null. but for other cells its giving proper value. why is it so?
demo
https://jsfiddle.net/yd0mzsca/