pravda1979/yii2-autocomplete-with-id-widget

Yii2 Jui AutoComplete with Id field widget

dev-master 2019-02-22 18:35 UTC

This package is auto-updated.

Last update: 2024-09-23 07:24:28 UTC


README

Yii2 Jui AutoComplete with Id field widget

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一

php composer.phar require --prefer-dist pravda1979/yii2-autocomplete-with-id-widget "*"

或者在您的 composer.json 文件的 require 部分添加以下内容

"pravda1979/yii2-autocomplete-with-id-widget": "*"

使用方法

一旦安装了此扩展,只需在您的代码中通过以下方式使用它

<?= $form->field($model, 'attribute_id')->widget(AutoCompleteWithId::className()); ?>```