onBuild - landrisek/impala GitHub Wiki
IBuilder::build You can replace value in rows with defining your own service implements Impala\IBuild interface. $this->build = new IBuild(); $this->grid->select(['column'=>'column','alternate'=>'alternate@hidden') ->build($this->build) Style rows: IBuild::build(array $row) { if(...) { $row['style'] = ['color'=>'red']; } return $row; } Style cell: IBuil::build(array $row) { $row['column']['Attributes']['style'] = ['color'=>'red']; return $row; } Html in cell: IBuild::build(array $row) { $row['column'] = ['Attributes' => ['href' => 'myUrl/?id=' . $row['id']], 'Label' => $row['column'], 'Tag' => 'a']; } return $row; } Checkbox: if(1 == $row['submit']) { $row['submit'] = ['Attributes' => ['checked' => 'checked', 'value' => 1, 'type' => 'checkbox'],'Tag' => 'input']; } else if(0 == $row['submit']) { $row['submit'] = ['Attributes' => ['value' => 0, 'type' => 'checkbox'],'Tag' => 'input']; } Datetime: $row['date'] = ['Attributes' => ['className' => 'form-control', 'format' => 'd.m.Y', 'type' => 'text', 'value' => $row['date']], 'Method' => 'addDateRow']; Mock filter by NULL in select statement In case you need independent filter process in Impala\IFetch: $this->grid->table('table') ->select('alias'=>null) ->select('alias'=>'@annotation')