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

__construct() public method

public __construct ( $label = NULL )
    public function __construct($label = NULL)
    {
        parent::__construct($label);
        $this->control->setName('textarea');
        $this->setOption('type', 'textarea');
    }

Usage Example

 /**
  * @param string $apiKey
  * @param string $secretKey
  * @param string $label
  * @throws Exception
  */
 public function __construct($apiKey, $secretKey, $label = NULL)
 {
     parent::__construct($label);
     $this->setApiKey($apiKey);
     $this->setSecretKey($secretKey);
     $this->setOmitted();
     $this->addRule(array($this, 'validateRecaptcha'), '');
 }
All Usage Examples Of Nette\Forms\Controls\TextArea::__construct