Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API 2.0

EOOS Automotive R22-08 is released in version v0.10.0

The second official release of EOOS Automotive that is qualified for POSIX and WIN32 compatible operating systems and based on interfaces designed for EOOS RT – real time operating system.

Class «DomBuilder\Element\Option»

option – option.

The option element represents an option in a select control, or an option in a labelled set of options grouped together in an optgroup, or an option among the list of suggestions in a datalist.

All implemented interfaces:

Object Builder Property Attribute Traverse Fetch Search Tester

public Option disabled(bool $value=true);

Sets a value of 'disabled' attribute.

Parameters:
bool $value — boolean value flag.

Returns:
Option — this element.

public string|Option label(string $value=NULL);

Returns or sets a value of 'label' attribute.

Parameters:
string $value — attribute value.

Returns:
string|Option — a current value or this element.

public Option selected(bool $value=true);

Sets a value of 'selected' attribute.

Parameters:
bool $value — boolean value flag.

Returns:
Option — this element.

public string|Option value(string $value=NULL);

Returns or sets a value of 'value' attribute.

Parameters:
string $value — attribute value.

Returns:
string|Option — a current value or this element.

Back to class list