Add configuration for defaultColumns, createFields to Lists
See original GitHub issueAt the moment, we’re showing all the fields as the default column set and in the create modal. It’s not particularly usable, and you can’t change it.
We’ve discussed a few different ideas here but for now I propose bringing forward two list options from Keystone 4: defaultColumns
and createFields
.
Both are space-separated lists of field paths, like this for your average User list config:
fields: {
name: { type: Text },
email: { type: Text, isUnique: true },
dob: {
type: CalendarDay,
format: 'Do MMMM YYYY',
yearRangeFrom: 1901,
yearRangeTo: getYear(new Date()),
},
password: { type: Password },
isAdmin: { type: Checkbox },
avatar: { type: File, adapter: avatarFileAdapter },
},
createFields: ['name', 'email', 'password', 'isAdmin'],
defaultColumns: ['name', 'email', 'isAdmin'],
labelResolver: item => `${item.name} <${item.email}>`,
Both could default to “all fields” as they currently do.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Configure the list layout - Product Documentation | ServiceNow
You can configure a list to choose which columns appear in a list, create list views, and create fields on the table.
Read more >Create a column in a list or library - Microsoft Support
Add an existing site column to a list or library · Navigate to the list or library you want to create a column...
Read more >im createfield - PTC Support
To create a computed field, you choose a field type to configure as a computed field. To specify a field type, use the...
Read more >How insert default columns when creating a table in ...
I see several ways to add design helpers to your PDM: Add it to the Initialize event handler of the Table class; Create...
Read more >Customize Related Lists - Salesforce Help
... columns displayed, column order, and record sort order of related lists on record detail pages in Salesforce and the Salesf... ... Filters...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dcousens #867 didn’t get merged. Gotta Cherry pick those changes out
It looks like there hasn’t been any activity here in over 6 months. Sorry about that! We’ve flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. 😃