PHP Class Nette\Forms\Controls\SelectBox

Author: David Grudl
Inheritance: extends BaseControl
Afficher le fichier Open project: nette/forms Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $label = NULL, array $items = NULL )
addOptionAttributes ( array $attributes ) : self
getControl ( ) : Nette\Utils\Html Generates control's HTML element.
getPrompt ( ) : mixed Returns first prompt item?
isOk ( ) : boolean
setItems ( array $items, $useKeys = TRUE ) : self Sets options and option groups from which to choose.
setPrompt ( $prompt ) : self Sets first prompt item in select box.

Method Details

__construct() public méthode

public __construct ( $label = NULL, array $items = NULL )
$items array

addOptionAttributes() public méthode

public addOptionAttributes ( array $attributes ) : self
$attributes array
Résultat self

getControl() public méthode

Generates control's HTML element.
public getControl ( ) : Nette\Utils\Html
Résultat Nette\Utils\Html

getPrompt() public méthode

Returns first prompt item?
public getPrompt ( ) : mixed
Résultat mixed

isOk() public méthode

public isOk ( ) : boolean
Résultat boolean

setItems() public méthode

Sets options and option groups from which to choose.
public setItems ( array $items, $useKeys = TRUE ) : self
$items array
Résultat self

setPrompt() public méthode

Sets first prompt item in select box.
public setPrompt ( $prompt ) : self
Résultat self