PHP Class Nette\Forms\Controls\MultiSelectBox

Inheritance: extends SelectBox
显示文件 Open project: nette/forms Class Usage Examples

Public Methods

Method Description
__construct ( $label = NULL, array $items = NULL )
addOptionAttributes ( array $attributes ) : self
getControl ( ) : Nette\Utils\Html Generates control's HTML element.
setItems ( array $items, $useKeys = TRUE ) : self Sets options and option groups from which to choose.

Method Details

__construct() public method

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

addOptionAttributes() public method

public addOptionAttributes ( array $attributes ) : self
$attributes array
return self

getControl() public method

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

setItems() public method

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