/** * Returns cell prototype (<td> html tag). * @param mixed $row * @return \Nette\Utils\Html */ public function getCellPrototype($row = NULL) { $td = parent::getCellPrototype($row); if ($this->isEditable() && $row !== NULL) { $td->data['grido-editable-value'] = $this->editableValueCallback === NULL ? parent::getValue($row) : callback($this->editableValueCallback)->invokeArgs(array($row, $this)); } return $td; }