Difference between #2 and #3 of
Custom Autocomplete Display and Value Submission

Revision #3 has been created by SebK on Jun 7, 2012, 8:09:10 PM with the memo:

changen minChars to minLength.
« previous (#2)

Changes

Title unchanged

Custom Autocomplete Display and Value Submission

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

tutorial, autocomplete, jui

Content changed

[...]
'source' => $this->createUrl('test/autocomplete'),
// attribute_value is a custom property that returns the
// name of our related object -ie return $model->related_model->name
'value' => $model->isNewRecord ? '': $model->attribute_value,
'options' => array(
'min
CharsLength'=>3,
'autoFill'=>false,
'focus'=> 'js:function( event, ui ) {
$( "#test_autocomplete" ).val( ui.item.name );
return false;
}',
[...]
12 0
18 followers
Viewed: 60 825 times
Version: 1.1
Category: How-tos
Written by: Antonio Ramirez
Last updated by: SebK
Created on: Jul 14, 2011
Last updated: 11 years ago
Update Article

Revisions

View all history