array(
'header' => '返回的服务器信息',
'name' => 'return_server_info',
'value' => 'str_replace("^", "<br />", $data->return_server_info)',
'type' => 'raw',
'htmlOptions' => array(
'style' =>'word-break: break-all; word-wrap:break-word;width:20%',
),
),

 

type 必填  htmlOptions 必填

value  里需要明确的换行符. 

 

 

array(
'header' => '用户名',
'name' => 'username',
'type' => 'raw',
'value' => 'CHtml::link($data->username, array("/admin/user/index", "username" => $data->username), array("target" => "_blank"))',
),

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-02-09
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2021-12-02
  • 2021-08-02
  • 2022-02-11
  • 2021-12-20
相关资源
相似解决方案