Class ConventionalRenderer
Converts a Form into the HTML output.
- Nette\Object
- Nette\Forms\ConventionalRenderer implements Nette\Forms\IFormRenderer
public
string
|
|
public
|
|
public
mixed
|
|
protected
|
|
public
string
|
|
public
string
|
|
public
string
|
#
renderErrors( Nette\Forms\IFormControl $control = NULL )
Renders validation errors (per form or per control). |
public
string
|
|
public
string
|
#
renderControls(
Renders group of controls. |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
renderControl( Nette\Forms\IFormControl $control )
Renders 'control' part of visual row of controls. |
protected
|
|
protected
string
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
public
array
|
$wrappers | array(
'form' => array(
'container' => NULL,
'errors' => TRUE,
),
'error' => array(
'container' => 'ul class=error',
'item' => 'li',
),
'group' => array(
'container' => 'fieldset',
'label' => 'legend',
'description' => 'p',
),
'controls' => array(
'container' => 'table',
),
'pair' => array(
'container' => 'tr',
'.required' => 'required',
'.optional' => NULL,
'.odd' => NULL,
),
'control' => array(
'container' => 'td',
'.odd' => NULL,
'errors' => FALSE,
'description' => 'small',
'requiredsuffix' => '',
'.required' => 'required',
'.text' => 'text',
'.password' => 'text',
'.file' => 'text',
'.submit' => 'button',
'.image' => 'imagebutton',
'.button' => 'button',
),
'label' => array(
'container' => 'th',
'suffix' => NULL,
'requiredsuffix' => '',
),
'hidden' => array(
'container' => 'div',
),
) |
#
/--- form.container |
protected
|
$form |
|
|
protected
object
|
$clientScript | TRUE |
|
protected
integer
|
$counter |
|