Keystone-classic: Admin UI - multiple fields on same line

Created on 24 Aug 2015  路  4Comments  路  Source: keystonejs/keystone-classic

Is it possible to have Keystone JS Admin UI display multiple fields on the same line in a detail view (like Location's State and Postcode, or Split Name's first name and last name)?

Most helpful comment

Where can I find some documentation on how to use this keystone.set('admin ui styling') option? Some example perhaps?

All 4 comments

There's no way to do this at the moment, I'm marking this for the roadmap while we settle down the major upcoming release. It's definitely something I'd like to add.

This could be implemented by allowing arrays of Objects in Object.add(). e.g.,

Post.add({
    [ category: { type: Types.Select, options: 'user, editor, admin', default: 'user' },
      title: { type: String, required: true },],
    author: { type: Types.Relationship, ref: 'User', filters: { group: 'admin' } }
});

would result in category and title on the same line.

This will be possible with the new keystone.set('admin ui styling') option, so I'll close this!

Where can I find some documentation on how to use this keystone.set('admin ui styling') option? Some example perhaps?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webteckie picture webteckie  路  5Comments

koenoe picture koenoe  路  4Comments

calebmcelroy picture calebmcelroy  路  3Comments

kamontat picture kamontat  路  5Comments

stennie picture stennie  路  5Comments