__construct() public method

public __construct ( $label = NULL, array $items = NULL )
$items array
示例#1
0
 /**
  * @param  string  label
  * @param  array   options from which to choose
  */
 public function __construct($label = NULL, array $items = NULL)
 {
     parent::__construct($label, $items);
     $this->control->type = 'radio';
     $this->container = Html::el();
     $this->separator = Html::el('br');
 }
示例#2
0
 public function __construct($label = NULL, array $items = NULL)
 {
     parent::__construct($label, $items);
     $this->setOption('type', 'select');
 }
示例#3
0
文件: SelectBox.php 项目: nette/forms
 public function __construct($label = NULL, array $items = NULL)
 {
     parent::__construct($label, $items);
     $this->setOption('type', 'select');
     $this->addCondition(Nette\Forms\Form::BLANK)->addRule([$this, 'isOk'], Nette\Forms\Validator::$messages[self::VALID]);
 }