list_box() html()
A styled select of bootstrap-form-helpers (bfh-selectbox) with a hidden input; the country boxes use it.
html()->list_box($name, $values = [], $selected = '', $extra = [])Опції
| Опція | Значення |
|---|---|
$name, $values, $selected | Name; value => text (may hold HTML such as flags); selected value. |
class_add, id | Classes; id. |
Приклад
key1
key2
Код
return html()->list_box('input_name', ['k1' => 'key1', 'k2' => 'key2']);Примітки
- Needs jQuery and the
bfh-selectasset (loaded by the control).
Див. також: form/country_box, html/div_box