Class WsModelGridView
WsModelGridView Displays a list of data items in terms of a table. Each row of the table represents the data of a single data item, and a column usually represents an attribute of the item. WsModelGridView supports both CRUD and pagination of the data items.
Param:
WsModel $model Instance of WsModel class
Param:
Located at WsModelGridView.class.php
Param:
string $order Sorting order for a grid
Example usage:
// class MyModel inherits from WsModel class $model = new MyModel(); $grid = new WsModelGridView($model); // show grid $grid->show();
Located at WsModelGridView.class.php
public
|
|
public
|
|
protected
integer
|
|
protected
string
|
|
public
|
public
integer
|
$itemsPerPage
$itemsPerPage Number of items per page |
#
10
|
public
string
|
$noDataText
$noDataText Text to display if model is empty |
|
public
boolean
|
$showEdit
$showEdit Shows or hide controls for CRUD operations |
#
true
|