setCustomRender() public method

public setCustomRender ( mixed $callback, array $variables = [] ) : Column
$callback mixed callback or string for name of template filename
$variables array - template variables
return Column
 /**
  * @param \Grido\Components\Columns\Column $column
  * @param Callable $recordCallback
  * @return \Grido\Components\Columns\Column
  */
 public function setupAsMultirecord(\Grido\Components\Columns\Column $column, $recordCallback)
 {
     $column->getCellPrototype()->class[] = 'multirecord';
     $column->setCustomRender(function ($row) use($recordCallback) {
         $return = Html::el('ul', ['class' => 'select2-choices']);
         foreach ($recordCallback($row) as $item) {
             $li = Html::el('li', ['class' => 'select2-search-choice']);
             $li->create('div', $item);
             $return->add($li);
         }
         return $return;
     });
     return $column;
 }