Nette\Forms\Controls\Checkbox::__construct PHP Method

__construct() public method

public __construct ( $label = NULL )
    public function __construct($label = NULL)
    {
        parent::__construct($label);
        $this->control->type = 'checkbox';
        $this->wrapper = Nette\Utils\Html::el();
        $this->setOption('type', 'checkbox');
    }

Usage Example

Esempio n. 1
0
 public function __construct($label = NULL)
 {
     parent::__construct($label ?: self::$globalCaption);
 }
All Usage Examples Of Nette\Forms\Controls\Checkbox::__construct