## Select

Draw aselect box with option fields

### Syntax

```php
$renderAdminLTE->getFormSelect($aOptions);
```

### Return

{string} html code

### Parameters

* $aOptions - {array} options to describe the element

Option fields:

Key      | Description
---      | ---
options  | List of option tags<br> - value   - value in the option<br> - label   - visible text in the option<br>other keys are attributes in the option

Styling for select tag:

Key      | Description
---      | ---
class    | optional: additional css classes
size     | optional: visible option lines

Content:

Key      | Description
---      | ---
name     | name attribute for sending form data
value    | value of the input field/ visible text; for checkbox and radio: the data to send when sending a form

### Example

#### Simple select box

```php
$renderAdminLTE->getFormSelect(array
(
    'label' => 'Select contact',
    'name' => 'contact',
    'tag' => 'select',
    'size' => 1,
    'options' => [
            ['value' => '',  'label' => 'select'],
            ['value' => '1', 'label' => 'Tom'],
            ['value' => '2', 'label' => 'Dick', 'selected' => 1 ],
            ['value' => '3', 'label' => 'Harry'],
    ],
));
```

You get a label, an select box wrapped in a ``<div class="form-group row">``.

```html
<div class="form-group row">
    <label for="contact-39c4c14176af359d95e81c45078f27f3" class="col-sm-2 col-form-label">Select contact</label>
    <div class="col-sm-10">
        <div class="form-group">
            <select name="contact" tag="select" size="1" class="form-control ">
                <option value="">select</option>
                <option value="1">Tom</option>
                <option value="2" selected="1">Dick</option>
                <option value="3">Harry</option>
            </select>
        </div>
    </div>
</div>
```