         sortDirection: Template.instance().sortDirection[field.fieldName]
         sortable: not field.arrayName
       }
+      if field.displayFn
+        tableField.fn = field.displayFn
+      fields.push(tableField)
 
     return {
       id: 'user-events-table'

    },
    {
      arrayName: '',
      description: 'Date the event was last modified.',
      displayName: 'Last Modified Date',
      fieldName: 'lastModifiedDate',
      defaultSortDirection: -1
    },
    {
      arrayName: '',

  settings: ->
    fields = []
    for field in Template.instance().userEventFields
      tableField = {
        key: field.fieldName
        label: field.displayName
        isVisible: Template.instance().fieldVisibility[field.fieldName]
