You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Name does not show up. Nothing is in the column header. No errors on the console show either. Tried with other browsers, and no joy. It must be a bug.
Expected Behavior
Columns defined using Array of Object Descriptors, should show the name simply without any problems.
Thanks Tyler, silly us! We experimented a bit with Mario and we found the following format resolved the issue:
Number 1 We continued passing a list to a "columns" object.
// Create an options object with the columns and data
const options = {
columns: [column1, column2, column3, column4, column5, column6, column7, column8, column9],
// data content is defined previously, and not our issue here...
data: data_content
}
// And we create our data table
const data_datatable = new DataTable(container, options);
Number 2 However, our declaration for each column object changed to this and worked.
Instead of name, we used "content"
Actual Behavior
When creating a datatable in a page on ERPNext, one can specify the column names with the following declaration:
This works fine.
However, if you wish to use the Array of Object Descriptors method:
The Name does not show up. Nothing is in the column header. No errors on the console show either. Tried with other browsers, and no joy. It must be a bug.
Expected Behavior
Columns defined using Array of Object Descriptors, should show the name simply without any problems.
Source
The text was updated successfully, but these errors were encountered: