/** * Sets the format of the column. * * @access public * @param integer $index * @param \Khill\Lavacharts\DataTables\Formats\Format $format * @return \Khill\Lavacharts\DataTables\DataTable * @throws \Khill\Lavacharts\Exceptions\InvalidColumnIndex */ public function formatColumn($index, Format $format) { $this->indexCheck($index); $this->cols[$index] = ColumnFactory::applyFormat($this->cols[$index], $format); return $this; }