Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 351 Bytes

SelectOther.md

File metadata and controls

9 lines (6 loc) · 351 Bytes

SelectOther

The SelectOther widget renders an simple text input for free text. The javascript adds a select box which allows the user to optionally select from predefined options

Basic usage with default settings:

<?= $form->field($model, 'employment')->widget(SelectOther::className(), ['items' => ['Full-time', 'Part-time']]); ?>