bcoregrid Grid shows data and apply multiple actions on rows!!

  1. Documentation
  2. Change Log

Now, each time growing up! release the vs. 0.3 of marvelous grid!! fast and easy configuration, you never waste time writing tables! it's support multiactions on grid selecting with checkbox, it will continue growing!!

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
Usage
  • models: link with the data model ( CActiveRecord)
  • pages: link with the pagination of your data ( CPagination)
  • sort: order of your data ( CSort).
  • row_active: permit to do clic in any place of row and invoke a action.
  • row_controller: name of controller invoked doing clic in row or in actions.
  • row_actionclick: name of action invoked doing clic in row ( if row_active is true).
  • row_owner: name of field that identify the value shows in delete message.
  • css: class name of grid style ( bcgrid by default).
  • row_even: class name of row style ( bcgrid_even by default).
  • row_odd: class name of row style ( bcgrid_odd by default).
  • row_over: class name of style when mouse is over of row( bcgrid_over by default).
  • attributes: set of grid columns:

    • name: name of data field.
    • title: value shows in grid column header.
    • align: align of value in cell ( left by default ).
    • css: style apply to some cell ( optional ).
    • width: column width.
    • type: for special columns, you can choose: delete, update, publish and show.
    • field_pub: if you choose publish type, in this parameter you must enter the name of field represents publish state ( 1 or 0 ).
$this->widget('application.extensions.bcoregrid.BCoreGridWidget',
	array( 'models'=>$models,
		   'pages'=>$pages,
		   'sort'=>$sort,
		   'row_controller'=>'usuarios',
		   'row_active'=>true,
		   'row_actionclick'=>'update',
		   'row_owner'=>'usuario',
		   'attributes'=>array(
		      array(
		       'type'=>'update',
		       'title'=>'U',
		       'width'=>'30px',
			   ),
		      array(
		       'type'=>'delete',
		       'title'=>'D',
		       'width'=>'30px',
			   ),
		      array(
		       'type'=>'show',
		       'title'=>'D',
		       'width'=>'30px',
			   ),
		      array(
		       'type'=>'publish',
		       'field_pub'=>'publish',
		       'title'=>'P',
		       'width'=>'30px',
			   ),
		      array(
		       'name'=>'user',
		       'title'=>'User',
		       'width'=>'180px',
                       'align'=>'center',
			   ),
		      array(
		       'name'=>'name',
		       'title'=>'Name',
                       'width'=>'250px',
                       'css'=>'light',
   			 	),
			  array(
		       'name'=>'lastname',
		       'title'=>'Last Name',
		       'width'=>'350px',
			   	),
		   )	
		 )
	); 

Change Log

July 31, 2009
  • Initial release.
    Agosto 03, 2009
  • release 0.2.
    Agosto 08, 2009
  • release 0.3.
4 3
1 follower
1 328 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: mariano2009
Created on: Aug 1, 2009
Last updated: 14 years ago

Downloads

show all