コード例 #1
0
ファイル: Button.php プロジェクト: janmarek/Neuron
 /**
  * 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;
 }
コード例 #2
0
ファイル: CheckButton.php プロジェクト: natrim/gridito
 /**
  * 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;
 }
コード例 #3
0
ファイル: Button.php プロジェクト: v6ak/Gridito
 /**
  * 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;
 }
コード例 #4
0
ファイル: WindowButton.php プロジェクト: v6ak/Gridito
 /**
  * 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;
 }
コード例 #5
0
ファイル: SubmitButton.php プロジェクト: Maisner/form
 /**
  * SubmitButton constructor.
  * @param string $formId
  */
 function __construct($formId)
 {
     parent::__construct(self::SUBMIT, $formId);
     $this->template = "Template/Submit.phtml";
 }