I have some buttons in the TbGridView and I want to open the link in a new window (Target = _blank. How would I do this with the TbButtonColumn. My code is
$this->widget('bootstrap.widgets.TbGridView', array(
'type' => 'striped bordered condensed',
'dataProvider' => $dataProviderPI,
'enablePagination'=>true,
'summaryText'=>'Displaying Insurance Documents {start}-{end} of {count} results.',
'template' => "{summary}{items}{pager}",
'htmlOptions'=>array('style' => 'width:500px;margin-left: 130px;',),
'columns' => array(
array('name' => 'insurer', 'header' => 'Insurance Company'),
array('name' => 'policy_no', 'header'=> 'Policy Number'),
array('name' => 'cover_amount', 'header'=> 'Cover Amount'),
array('name' => 'finish_date', 'header'=> 'Expiry Date'),
array('name' => 'scanned_doc', 'header' => 'Document'),
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
'header'=>'View',
'template'=>'{view}',
'viewButtonUrl'=>'"$data->scanned_doc"',
'htmlOptions'=>array('style'=>'width:20px;text-align:center;'),
),
),
)); ?>
I am unsure how the following in a new window
'viewButtonUrl'=>'"$data->scanned_doc"',
Any help appreciated