Greetings,
I created a FileManager component with a couple of custom columns ('owner' and 'shared' here) and getting rid of the 'Modified' column:
detailsViewSettings: {
columns: [
{
field: 'name',
headerText: 'Name',
minWidth: 120,
width: 'auto',
template: '${name}'
},
{
field: 'owner',
headerText: 'Owner',
width: 'auto',
template: '${owner}',
type: 'text',
},
{
field: 'shared',
headerText: 'Shared',
width: 'auto',
template: '${shared}',
type: 'text',
},
{
field: '_fm_modified',
headerText: 'Modified',
minWidth: 50,
width: '190',
format: 'E d, y H:m',
}
],
},
Which is effectively reflected in the Details view - it will show the checkbox column, the name column, owner and shared columns and the Modified column.
But those custom columns aren't being shown in the popup menu that shows clicking the 'Sort by' toolbar button - it still shows the default column values:
Even if I click that 'Size' menu item, JS will throw an error. I can't find anything related to this in the documentation to include said custom columns in this menu (besides the 'allowSorting' option, which it says it's enabled by default for all columns), is there any approach to make this menu reflect the columns being used and make it able to sort by said custom column values?