Open emaddoma opened 5 years ago
Display attribute of field as defautlt column. Keystone v3 supported this.
This no longer works in Keystone 4.
`'use strict';
const keystone = require('keystone');
const Types = keystone.Field.Types;
/**
const EventLocation = new keystone.List('EventLocation', { map: { name: 'location.name' }, track: true
});
EventLocation.add({ location: { type: Types.Location, enableMapsAPI: true, initial: true, collapse: false } });
EventLocation.defaultColumns = 'location.name, location.suburb, location.state'; EventLocation.register(); `
Keystone 4.2.1 Node 8 Admin UI
Expected behavior
Display attribute of field as defautlt column. Keystone v3 supported this.
Actual/Current behavior
This no longer works in Keystone 4.
Steps to reproduce the actual/current behavior
`'use strict';
const keystone = require('keystone');
const Types = keystone.Field.Types;
/**
const EventLocation = new keystone.List('EventLocation', { map: { name: 'location.name' }, track: true
});
EventLocation.add({ location: { type: Types.Location, enableMapsAPI: true, initial: true, collapse: false } });
EventLocation.defaultColumns = 'location.name, location.suburb, location.state'; EventLocation.register(); `
Environment
Keystone 4.2.1 Node 8 Admin UI