Yii 1.1: yii-auto-complete

This is Yii autocomplete extension using Jquery Ui.
3 followers

YiiComplete

This is Yii autocomplete extension using Jquery Ui. It enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.

Usage

Requirements

  • Tested with Yii 1.1.14
  • Jquery 1.10.2
  • Jquery Ui 1.10.4 or above

Install

Usage

  • Paste the code into your view file
<?php 
    $this->widget('ext.YiiComplete.YiiComplete', array(
    'jsonUrl' => '<url with json data(http://www.site.com/controller/JsonAction)>'
));
?>
  • Json data should be in format:
[
    {
        "id": 1,
        "label": "Car1",
        "value": "Saab"
    },
    {
        "id": 2,
        "label": "Car2",
        "value": "Audi"
    },
    {
        "id": 3,
        "label": "Car3",
        "value": "Honda"
    },
    ...
    etc
]

Resources

Total 1 comment

#17448 report it
Daniel Galvan at 2014/06/13 03:28pm
Greate work!

Thanks for sharing.

Leave a comment

Please to leave your comment.

Create extension