Grido@master
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • Grido
    • Components
      • Actions
      • Columns
      • Filters
    • DataSources
    • PropertyAccessors
    • Translations

Classes

  • Grido\Translations\FileTranslator
 1 <?php
 2 
 3 /**
 4  * This file is part of the Grido (https://github.com/o5/grido)
 5  *
 6  * Copyright (c) 2011 Petr Bugyík (http://petr.bugyik.cz)
 7  *
 8  * For the full copyright and license information, please view
 9  * the file LICENSE.md that was distributed with this source code.
10  */
11 
12 namespace Grido\Components\Filters;
13 
14 /**
15  * Filter with custom form control.
16  *
17  * @package     Grido
18  * @subpackage  Components\Filters
19  * @author      Petr Bugyík
20  */
21 class Custom extends Filter
22 {
23     /** @var \Nette\Forms\IControl */
24     protected $formControl;
25 
26     /**
27      * @param \Grido\Grid $grid
28      * @param string $name
29      * @param string $label
30      * @param \Nette\Forms\IControl $formControl
31      */
32     public function __construct($grid, $name, $label, \Nette\Forms\IControl $formControl)
33     {
34         $this->formControl = $formControl;
35 
36         parent::__construct($grid, $name, $label);
37     }
38 
39     /**
40      * @return \Nette\Forms\IControl
41      * @internal
42      */
43     public function getFormControl()
44     {
45         return $this->formControl;
46     }
47 }
48 
Grido@master API documentation generated by ApiGen