src/column.js
function () {
    if (!this.has("label")) {
      this.set({ label: this.get("name") }, { silent: true });
    }

    var headerCell = Backgrid.resolveNameToClass(this.get("headerCell"), "HeaderCell");

    var cell = Backgrid.resolveNameToClass(this.get("cell"), "Cell");

    this.set({cell: cell, headerCell: headerCell}, { silent: true });
  }
function () {
    if (!this.has("label")) {
      this.set({ label: this.get("name") }, { silent: true });
    }

    var headerCell = Backgrid.resolveNameToClass(this.get("headerCell"), "HeaderCell");

    var cell = Backgrid.resolveNameToClass(this.get("cell"), "Cell");

    this.set({cell: cell, headerCell: headerCell}, { silent: true });
  }
function ( ) { if ( ! this . has ( "label" ) ) { this . set ( { label : this . get ( "name" ) } , { silent : true } ) ; } var headerCell = Backgrid . resolveNameToClass ( this . get ( "headerCell" ) , "HeaderCell" ) ; var cell = Backgrid . resolveNameToClass ( this . get ( "cell" ) , "Cell" ) ; this . set ( { cell : cell , headerCell : headerCell } , { silent : true } ) ; }
Initializes this Column instance.

@param {Object} attrs

@param {string} attrs.name The model attribute this column is responsible
for.

@param {string|Backgrid.Cell} attrs.cell The cell type to use to render
this column.

@param {string} [attrs.label]

@param {string|Backgrid.HeaderCell} [attrs.headerCell]

@param {boolean|string|function(): boolean} [attrs.sortable=true]

@param {boolean|string|function(): boolean} [attrs.editable=true]

@param {boolean|string|function(): boolean} [attrs.renderable=true]

@param {Backgrid.CellFormatter | Object | string} [attrs.formatter]

@param {"toggle"|"cycle"}  [attrs.sortType="cycle"]

@param {(function(Backbone.Model, string): *) | string} [attrs.sortValue]

@throws {TypeError} If attrs.cell or attrs.options are not supplied.

@throws {ReferenceError} If formatter is a string but a formatter class of
said name cannot be found in the Backgrid module.

See:

- Backgrid.Column.defaults
- Backgrid.Cell
- Backgrid.CellFormatter
Initializes this Column instance .