Having the following component:
Can someone tell me how to put a component that is not an input, for example a checkbox, inside the row?
Seeing the code of the previous link I tried to do this:
const check = <input type="checkbox"/>;
let _rows = [];
for (var i = 1; i < numberOfRows; i++) {
_rows.push({
id: i,
task: "Task" + i,
complete: Math.min(100, Math.round(Math.random() * 110)),
priority: ['Critical', 'High', 'Medium', 'Low'][Math.floor((Math.random() * 3) + 1)],
issueType: ['Bug', 'Improvement', 'Epic', 'Story'][Math.floor((Math.random() * 3) + 1)],
startDate: randomDate(new Date(2015, 3, 1), new Date()),
completeDate: randomDate(new Date(), new Date(2016, 0, 1)),
mycolumn: {check}
});
}
But it does not work.
Any help, please. Thanks:)