     checkboxField =
       key: 'checked'
       label: ''
-      fn: (value, object) ->
-        getValue = checkbox.getValue
-        if getValue
-          value = getValue(object)
-        checked = if value then 'checked' else ''
-        html = '<input type="checkbox" ' + checked + ' />'
-        Spacebars.SafeString(html)
+      fn: (value, object) -> createCheckbox(value, object, checkbox)
     if Types.isObject(checkbox.field)
       _.extend checkboxField, checkbox.field
     fields.unshift checkboxField

  data = @data
  domNode = getDomNode(this)
  settings = getSettings()
  $table = $(@$('.reactive-table')).addClass('ui selectable table segment')
  $collectionTable = @$('.collection-table')

  createHandlerContext = (extraArgs) ->

  getDomNode: getDomNode
  setDomTableId: setDomTableId
  getDomTableId: getDomTableId
  createCheckbox: createCheckbox

# Template methods.

