2017 © Pedro Peláez
 

yii2-extension yii2-ddltextswitcher

image

rsiripong/yii2-ddltextswitcher

  • Tuesday, February 14, 2017
  • by rsiripong
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-ddltextswitcher

switch input between dropdownlist and textinput, (*1)

example, (*2)

use rsiripong\ddltextswitcher\DdlTextSwitcher;, (*3)

echo $form->field($model, 'PERSONTITLEID')
    ->widget(DdlTextSwitcher::classname(),[

        'items'=> ArrayHelper::map(\app\models\Empersontitle::find()->all(),'PERSONTITLEID','PERSONTITLENAME'),// dropdownselect list
        'prompt'=>$promptMsg ,
        'nameother'=>'PERSONTITLEOTHER' /// other text input
    ])

The Versions

14/02 2017

dev-master

9999999-dev http://github.com/rsiripong/yii2-ddltextswitcher

  Sources   Download

BSD-3-Clause

extension yii2 bootstrap