final class ControlGroup

A user group of form controls.

Properties

protected $controls

Methods

__construct()

No description

add(...$items)

No description

void
remove(Control $control)

No description

void
removeOrphans()

No description

array
getControls()

No description

setOption(string $key, mixed $value)

Sets user-specific option.

mixed
getOption(string $key, $default = null)

Returns user-specific option.

array
getOptions()

Returns user-specific options.

Details

at line 27
__construct()

No description

at line 33
ControlGroup add(...$items)

No description

Parameters

...$items

Return Value

ControlGroup

at line 56
void remove(Control $control)

No description

Parameters

Control $control

Return Value

void

at line 62
void removeOrphans()

No description

Return Value

void

at line 73
array getControls()

No description

Return Value

array

at line 88
ControlGroup setOption(string $key, mixed $value)

Sets user-specific option.

Options recognized by DefaultFormRenderer

  • 'label' - textual or Nette\HtmlStringable object label
  • 'visual' - indicates visual group
  • 'container' - container as Html object
  • 'description' - textual or Nette\HtmlStringable object description
  • 'embedNext' - describes how render next group

Parameters

string $key
mixed $value

Return Value

ControlGroup

at line 104
mixed getOption(string $key, $default = null)

Returns user-specific option.

Parameters

string $key
$default

Return Value

mixed

at line 113
array getOptions()

Returns user-specific options.

Return Value

array

Traits

Strict class for better experience.