\Hazaar\Html
Select
The HTML select class.

Displays an HTML <select> element.

Tags

Since

1.1

Summary
Methods Properties Constants
add
No constants
Properties
$nullable
$nullable
$placeholder
$placeholder
$use_options_index_as_value
$use_options_index_as_value
$value
$value
Methods
__construct()
__construct($name = null, $options = null, $value = null, $params = Array ( ) , $use_options_index_as_value = true)

The HTML select constructor.

Tags

Since

1.1

Parameters

$name

No description

$options

No description

$value

No description

$params

No description

$use_options_index_as_valueboolean

Normally not used, but this will disable the use of the options index and cause the

                                             resulting SELECT OPTIONS to have no VALUE attribute.
add()
add()
addOptgroup()
addOptgroup($label, $options = Array ( ) )

Parameters

$label

No description

$options

No description

addOption()
addOption($label, $value = null, $params = Array ( ) )

Parameters

$label

No description

$value

No description

$params

No description

nullable()
nullable($boolean = true, $placeholder = null)

Parameters

$boolean

No description

$placeholder

No description

renderElement()
renderElement($child)

Parameters

$child

No description

renderObject()
renderObject()