Grido\Components\Columns\Editable::getCellPrototype PHP Method

getCellPrototype() public method

Returns cell prototype ( html tag).
public getCellPrototype ( mixed $row = NULL ) : Nette\Utils\Html
$row mixed
return Nette\Utils\Html
    public function getCellPrototype($row = NULL)
    {
        $td = parent::getCellPrototype($row);
        if ($this->isEditable() && $row !== NULL) {
            if (!in_array('editable', $td->class)) {
                $td->class[] = 'editable';
            }
            $value = $this->editableValueCallback === NULL ? $this->getValue($row) : call_user_func_array($this->editableValueCallback, [$row, $this]);
            $td->setAttribute('data-grido-editable-value', $value);
        }
        return $td;
    }