JSON Picker Column

Cool picker box for JSON Grid View

Displays any data you wish in a 'cool' picker dropdown box. The following code is an example of use, it calls an url via AJAX call and fills the content of the picker with its results.

...
array(
'class' => 'booster.widgets.TbJsonPickerColumn',
'name'=>'country_code',
'pickerOptions' => array(
    'title' => 'My Title',
    'width' => '400px',
    'content' => 'js:function(){
        $.ajax({
            url: "'.$this->createUrl('site/yiiGrid').'",
            success: function(r) {
            $(".picker-content > *").html(r);
        }
    });
    return "<span id=\"picker-ajax-html\">".
    "<img src=\"http://www.flexvuefilms.com/img/loading.gif\"/>".
	"</span>";
}'),),
...

Here's all configuration properties which you can set for TbEditableView widget.

Property Description
type name = default description