_sortable; } public function setSortable($sortable) { $this->_sortable = $sortable; return $this; } public function isRemovable() { return $this->_removable; } public function setRemovable($removable) { $this->_removable = $removable; return $this; } public function addOptionsColumn() { $group = []; if ($this->isSortable()) { $this->addElement( 'button', 'moveUp', [ 'label' => '', 'title' => 'Move Up', 'data-action-up' => '', 'class' => 'btn btn-small fa fa-long-arrow-up', 'decorators' => ['ViewHelper'], ] ); $this->addElement( 'button', 'moveDown', [ 'label' => '', 'title' => 'Move Down', 'data-action-down' => '', 'class' => 'btn btn-small fa fa-long-arrow-down', 'decorators' => ['ViewHelper'], ] ); $group[] = 'moveUp'; $group[] = 'moveDown'; } if ($this->isRemovable()) { $this->addElement( 'button', 'delete', [ 'label' => 'Delete', 'data-action-delete' => '', 'class' => 'btn btn-small btn-danger btn-delete', 'decorators' => ['ViewHelper'], ] ); $group[] = 'delete'; } if (empty($group)) { return $this; } $this->addDisplayGroup( $group, 'options', [ 'legend' => 'Options', 'class' => 'options', 'decorators' => [ 'FormElements', [ 'HtmlTag', [ 'tag' => 'td', 'data-options-cell' => '', 'class' => 'c_options', ] ] ] ] ); return $this; } }