/** * Create button element * @param mixed row * @return \Nette\Web\Html */ protected function createButton($row = null) { $el = parent::createButton($row); $el->class[] = "gridito-window-button"; $el->data("gridito-window-title", $this->getLabel()); return $el; }
/** * Create button element * @param mixed $row * @return \Nette\Utils\Html */ public function createButton($row = null) { $el = parent::createButton($row); $el->class[] = 'gridito-window-button'; $el->data('gridito-window-title', $this->getLabel()); $el->data('gridito-window-width', $this->windowWidth); $el->data('gridito-window-height', $this->windowHeight); $el->data('gridito-window-modal', $this->windowModal); $el->data('gridito-window-draggable', $this->windowDraggable); $el->data('gridito-window-resizable', $this->windowResizable); return $el; }