public function setFilterSelect(array $items = NULL) { return $this->grid->addFilterSelect($this->getName(), $this->label, $items); }
/** * @param \Grido\Components\Columns\Column $column * @return \Grido\Components\Columns\Column */ public function setupAsBool(\Grido\Components\Columns\Column $column) { $col = $column->getColumn(); $column->setSortable(); $column->setFilterSelect($this->yesNoArray); $column->setCustomRender(function ($row) use($col) { if (!isset($this->yesNoArray[$row[$col]])) { return NULL; } return $this->yesNoArray[$row[$col]]; }); return $column; }