ocimzone
(Ocimzone)
1
Agan-agan mastah yii… ane mau tanya tentang penggunaan checklist di Bulk Actions booster (http://yii-booster.clevertech.biz/extended-grid.html).
Kalau ane punya tabel
karyawan (id, nama, alamat)
coding di contoh script bulk action pada gambar ini jadi gmn y gan supaya ada checklistny?
coba kayak gini ini gan
tapi sesuaikan dengan field & model anda ya?
<?php
$this->widget('bootstrap.widgets.TbExtendedGridView', array(
'type' => 'striped bordered',
'dataProvider'=>$model->search(),
'filter'=>$model,
'template' => "{items}",
'bulkActions' => array(
'actionButtons' => array(
array(
'buttonType' => 'button',
'type' => 'primary',
'size' => 'small',
'label' => 'Testing Primary Bulk Actions',
'click' => 'js:function(values){console.log(values);}'
)
),
// if grid doesn't have a checkbox column type, it will attach
// one and this configuration will be part of it
'checkBoxColumnConfig' => array(
'name' => 'no'
),
),
'columns' => array(
'no',
'nama',
'path',
'ukuran',
'lvl',
array(
'class'=>'CButtonColumn',
),
),
));
?>
semoga berhasil gan
~Happy Coding~