src/TableColumn/Generic.php
public function setAttr($attr, $value, $position = 'body')
    {
        $this->attr[$position][$attr] = $value;

        return $this;
    }
public function setAttr($attr, $value, $position = 'body')
    {
        $this->attr[$position][$attr] = $value;

        return $this;
    }
public function setAttr ( $ attr , $ value , $ position = 'body' ) { $ this -> attr [ $ position ] [ $ attr ] = $ value ; return $ this ; }
Adds a new attribute to the cells of this column. The optional second argument may be "head",
"body" or "foot". If position is not defined, then attribute will be applied on all cells.

You can also use the "{$name}" value if you wish to specific row value:

$table->column['name']->setAttr('data', '{$id}');

@param string $attr
@param string $value
@param string $position

@return $this
Adds a new attribute to the cells of this column . The optional second argument may be head body or foot . If position is not defined then attribute will be applied on all cells .