Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

How To Use Bulk Action In Yiibooster

$
0
0
I want to delete multiple(selected) rows by use yiiBooster,any code example.Thx :rolleyes:

    
    $this->widget('bootstrap.widgets.TbExtendedGridView', array(
    'type' => 'striped bordered',
    'dataProvider' => $gridDataProvider,
    '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' => 'id'
    ),
    ),
    'columns' => $gridColumns,
    ));

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>