/** * Create button element * @param mixed row * @return Nette\Web\Html */ protected function createButton($row = null) { $el = parent::createButton($row); $el->class[] = $this->isAjax() ? $this->getGrid()->getAjaxClass() : null; $el->data("gridito-question", $this->getConfirmationQuestion($row)); return $el; }
/** * Create button element * @param mixed $row * @return \Nette\Utils\Html */ public function createButton($row = null) { $el = parent::createButton($row); if ($this->isChecked($row)) { $el->class[] = 'checked'; } $el->class[] = $this->isAjax() ? $this->getGrid()->getAjaxClass() : null; return $el; }
/** * Create button element * @param mixed $row * @return \Nette\Web\Html */ protected function createButton($row = null) { $el = parent::createButton($row); if ($this->ajax) { $el->class($this->getGrid()->getAjaxClass()); } if ($this->confirmationQuestion) { $el->onClick = "gridito.confirmationQuestion(event, " . json_encode($this->confirmationQuestion) . ")"; } return $el; }
/** * Create button element * @param mixed $row * @return \Nette\Web\Html */ protected function createButton($row = null) { $el = parent::createButton($row); $el->onClick = "gridito.loadWindow(this.href, " . json_encode($this->getLabel()) . ", event)"; return $el; }
/** * SubmitButton constructor. * @param string $formId */ function __construct($formId) { parent::__construct(self::SUBMIT, $formId); $this->template = "Template/Submit.phtml"; }