yii-auto-complete This is Yii autocomplete extension using Jquery Ui.

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

1 0
3 followers
979 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: Nikola Balog
Created on: Jun 10, 2014
Last updated: 3 years ago

Downloads

show all