for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Grido (https://github.com/o5/grido)
*
* Copyright (c) 2011 Petr Bugyík (http://petr.bugyik.cz)
* For the full copyright and license information, please view
* the file LICENSE.md that was distributed with this source code.
*/
namespace Grido\Components\Filters;
* Select box filter.
* @package Grido
* @subpackage Components\Filters
* @author Petr Bugyík
class Select extends Filter
{
* @param \Grido\Grid $grid
* @param string $name
* @param string $label
* @param array $items for select
public function __construct($grid, $name, $label, array $items = NULL)
parent::__construct($grid, $name, $label);
if ($items !== NULL) {
$this->getControl()->setItems($items);
}
* @return \Nette\Forms\Controls\SelectBox
protected function getFormControl()
return new \Nette\Forms\Controls\SelectBox($this->label);