Overview

Namespaces

  • Budovy
  • Kdyby
    • BootstrapFormRenderer
      • DI
      • Latte
  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • Nextras
    • Datagrid
  • None
  • PHP
  • Tester
    • CodeCoverage
    • Runner
      • Output
  • Vodacek
    • Forms
      • Controls
  • WebLoader
    • Filter
    • Nette

Classes

  • BootstrapRenderer
  • Overview
  • Namespace
  • Class
  • Tree

Class BootstrapRenderer

Created with twitter bootstrap in mind.

$form->setRenderer(new Kdyby\BootstrapFormRenderer\BootstrapRenderer);
Nette\Object
Extended by Kdyby\BootstrapFormRenderer\BootstrapRenderer implements Nette\Forms\IFormRenderer
Namespace: Kdyby\BootstrapFormRenderer
Author: Pavel Ptacek
Author: Filip Procházka
Located at vendor/others/Kdyby/BootstrapFormRenderer/BootstrapRenderer.php
Methods summary
public
# __construct( Nette\Templating\FileTemplate $template = NULL )

Parameters

$template
Nette\Templating\FileTemplate
$template
public
# render( Nette\Forms\Form $form, string $mode = NULL, array $args = NULL )

Render the templates

Render the templates

Parameters

$form
Nette\Forms\Form
$form
$mode
string
$mode
$args
array
$args

Implementation of

Nette\Forms\IFormRenderer::render()
public array
# findErrors( )

Returns

array
public object[]
# findGroups( )

Returns

object[]

Throws

RuntimeException
public Iterator
# findControls( Nette\Forms\Container $container = NULL, boolean $buttons = NULL )

Parameters

$container
Nette\Forms\Container
$container
$buttons
boolean
$buttons

Returns

Iterator
public static string
# getControlName( Nette\Forms\Controls\BaseControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\Controls\BaseControl
$control

Returns

string
public static Nette\Utils\Html
# getControlDescription( Nette\Forms\Controls\BaseControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\Controls\BaseControl
$control

Returns

Nette\Utils\Html
public Nette\Utils\Html
# getControlError( Nette\Forms\Controls\BaseControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\Controls\BaseControl
$control

Returns

Nette\Utils\Html
public static string
# getControlTemplate( Nette\Forms\Controls\BaseControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\Controls\BaseControl
$control

Returns

string
public static boolean
# isButton( Nette\Forms\IControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\IControl
$control

Returns

boolean
public static boolean
# isSubmitButton( Nette\Forms\IControl $control = NULL )

 @internal

 @internal

Parameters

$control
Nette\Forms\IControl
$control

Returns

boolean
public static boolean
# isCheckbox( Nette\Forms\IControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\IControl
$control

Returns

boolean
public static boolean
# isRadioList( Nette\Forms\IControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\IControl
$control

Returns

boolean
public static boolean
# isCheckboxList( Nette\Forms\IControl $control )

 @internal

 @internal

Parameters

$control
Nette\Forms\IControl
$control

Returns

boolean
public static Nette\Utils\Html
# getLabelBody( Nette\Forms\Controls\BaseControl $control )

Parameters

$control
Nette\Forms\Controls\BaseControl
$control

Returns

Nette\Utils\Html
public static boolean
# controlHasClass( Nette\Forms\Controls\BaseControl $control, string $class )

Parameters

$control
Nette\Forms\Controls\BaseControl
$control
$class
string
$class

Returns

boolean
public static Nette\Utils\Html
# mergeAttrs( Nette\Utils\Html $_this = NULL, array $attrs )

Parameters

$_this
Nette\Utils\Html
$_this
$attrs
array
$attrs

Returns

Nette\Utils\Html
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public boolean $errorsAtInputs TRUE
#

set to false, if you want to display the field errors also as form errors

set to false, if you want to display the field errors also as form errors

public array $priorGroups array()
#

Groups that should be rendered first

Groups that should be rendered first

Magic properties inherited from Nette\Object
$reflection
API documentation generated by ApiGen 2.8.0