Sha256: 78d59e1e0a8c249259e17181319dad1747c39d59f61474953ee5f960b212e5f5

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

define [
  'controllers/base'
], (BaseController) ->

  class GridController extends BaseController

    buildColumns: (columns, _locals) ->
      for column in columns
        $.extend(column, {
          field: column.id
          name: _locals[column.id]
          sortable: if column.sortable? then column.sortable else true
        })

  return GridController

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
requirejs-controllers-0.1.1 vendor/assets/javascripts/controllers/grid.js.coffee
requirejs-controllers-0.1.0 vendor/assets/javascripts/controllers/grid.js.coffee