Lines Matching defs:label
23 * @param string $label The label text for this element (will be autoescaped)
25 public function __construct($name, $options, $label = '')
27 parent::__construct('dropdown', $name, $label);
36 * @param string $label
41 public function addOptGroup($label, $options)
43 if (empty($label)) {
44 throw new \InvalidArgumentException(hsc('<optgroup> must have a label!'));
46 $this->optGroups[$label] = new OptGroup($label, $options);
54 * * the key being the label of the group
66 throw new \InvalidArgumentException(hsc('Argument must be an associative array of label => [options]!'));
69 foreach ($optGroups as $label => $options) {
70 $this->addOptGroup($label, $options);
78 * Options can be given as associative array (value => label) or as an
79 * indexd array (label = value) or as an array of arrays. In the latter
82 * 'label' => option-label,