0
如何在文档准备好后绘制CGridView?我有Yii框架1.14,jquery和jquery.ui成功加载!如何在文档准备好后绘制CGridView?
Console.error!由于网格是文件准备
TypeError: jQuery(...).dialog is not a function
jQuery("#dialog").dialog();
我的代码后得出:
[
'class' => 'zii.widgets.grid.CButtonColumn',
'template' => '{edit}',
'headerHtmlOptions' => ['class' => 'col-lg-1', 'style' => 'text-align:center'],
'buttons' => [
'edit' => [
'label' => '<span class="glyphicon glyphicon-comment"></span>',
'url' => "Yii::app()->controller->createUrl('ViewComments',['key'=>\$data->key])",
'imageUrl' => null,
'options' => [
'style' => 'color: black',
'rel' => 'tooltip',
'data-toggle' => 'modal',
'data-target' => "#myModal",
'title' => 'Комментировать',
'ajax' => [
'type' => 'post',
'url' => 'js:$(this).attr("href")',
'dataType' => 'html',
'success' => 'js:function(data){
jQuery("#dialog").dialog();
}'
],
],
],
]
],
是的,这是必要的,我负责布局! – 2014-08-28 11:48:07