프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$optGroups | OptGroup[] |
메소드 | 설명 | |
---|---|---|
__construct ( string $name, array $options, string $label = '' ) | ||
addOptGroup ( string $label, array $options ) : |
Add an and respective options | |
attr ( string $name, null | string $value = null ) : string | $this | Gets or sets an attribute | |
optGroups ( null | array $optGroups = null ) : |
Set or get the optgroups of an Dropdown-Element. | |
options ( null | array $options = null ) | Get or set the options of the Dropdown | |
val ( null | string $value = null ) | Get or set the current value |
메소드 | 설명 | |
---|---|---|
getFirstOption ( ) : string | Returns the first options as it will be rendered in HTML | |
mainElementHTML ( ) : string | Create the HTML for the select it self | |
setValueInOptGroups ( string $value ) : boolean | Set the value in the OptGroups, including the optgroup for the options without optgroup. |
public addOptGroup ( string $label, array $options ) : |
||
$label | string | |
$options | array | |
리턴 | a reference to the added optgroup |
protected getFirstOption ( ) : string | ||
리턴 | string |
protected mainElementHTML ( ) : string | ||
리턴 | string |
protected setValueInOptGroups ( string $value ) : boolean | ||
$value | string | |
리턴 | boolean |