bcoregrid
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
Copyright © 2009 by Mariano Alcántara Francia - Boolean Core All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Mariano Alcántara nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Available Downloads
| File | Summary | Uploaded on | Downloaded |
|---|---|---|---|
| bcoregridv0.3.zip (7.1 KB) | BCoreGrid vs.0.3 | August 9, 2009 | 386 |
| bcoregridv0.2.zip (7.3 KB) | BCoreGrid vs.0.2 | August 3, 2009 | 64 |
| bcoregrid.zip (6.4 KB) | BCoreGrid | July 31, 2009 | 70 |
July 31, 2009
- Initial release.
Agosto 03, 2009
- release 0.2.
Agosto 08, 2009
- release 0.3.
Requirements
- Yii 1.0 or above
Installation
- Extract the release file under
protected/extensions - Copy files in "images" to your images folder.
- See http://www.booleancore.com/bcoregrid/index.php for more explained documentation.
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', ), ) ) );
