Yii Framework Forum: Checklist Di Bulk Actions Booster - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Checklist Di Bulk Actions Booster checklist di Bulk Actions booster Rate Topic: ***** 1 Votes

#1 User is offline   Nur Rochim 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 04-February 13
  • Location:Indonesia

Posted 18 April 2013 - 08:00 AM

Agan-agan mastah yii... ane mau tanya tentang penggunaan checklist di Bulk Actions booster (http://yii-booster.c...ended-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? :-[

Attached File(s)


0

#2 User is offline   ruderbytes 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 05-November 12
  • Location:Indonesia

Posted 17 May 2013 - 09:02 PM

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~
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users