yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
827 stars 261 forks source link

How can I add Columns to Tables #379

Closed kenshinman closed 7 years ago

kenshinman commented 7 years ago

Hello guys, Thanks for this Package. Please how can I add columns to the tables displayed in the admin area. Say For Example: I have a blog collection BlogPosts the folowing Schema

let BlogSchema = new SimpleSchema({
title: {
      type: String,
      optional: false,
      max: 200,
      label: 'Post Title'
    },
    slug: {
      type: 'String',
      optional: true,
      unique: true,
      autoform: {
        afFieldInput: {
          type: "hidden"
        },
        afFormGroup: {
          label: false
        }
      }
    },
    content: {
        type: String,
        label: 'Post Content',
        optional: false,
        autoform: {
         afFieldInput: {
           type: 'summernote',
           class: 'editor',
           settings: {
             height: 300,
             minHeight: null,
             maxHeight: null,
             focus: true
           }
         }
       }
    }
})

BlogPosts.attachSchema(BlogPostsSchema);

How can I make my Yogibin admin use this schema to display my data. As at this moment, all I have on the table is just the _id and the edit and the delete buttons.

Thanks