Open neeush opened 7 years ago
One more example .....I am getting the problem is data,rowId & rowIndex are coming undefined....
{ 'name': 'birth day', 'field': 'birthday', 'width': '30px', widgetsInCell: true, decorator: function (data, rowId, rowIndex ){ console.log(data); console.log(rowId); console.log(rowIndex);
return "<img onclick='window.hello()' src='images/notification.png' alt='notification icon' width='32px' height='32px'>";
}
};
Hi All,
decorator function doesnot take an input usually sa below decorator: function(){ return [ '<span data-dojo-type="dijit.form.CheckBox" ', 'data-dojo-attach-point="cb" ', 'data-dojo-props="readOnly: true"', '>' ].join(''); },
but have seen that in some cases decorator function takes arguments example as below
decorator: function(cellData){ return "" + cellData + ""; }.
How can we achieve this i.e. to make the decorator method accept valid arguments.