Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * 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;
 }
Beispiel #3
0
 /**
  * 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;
 }
Beispiel #4
0
 /**
  * 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;
 }
Beispiel #5
0
 /**
  * SubmitButton constructor.
  * @param string $formId
  */
 function __construct($formId)
 {
     parent::__construct(self::SUBMIT, $formId);
     $this->template = "Template/Submit.phtml";
 }