EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions | Data Fields | Protected Attributes
jqgrid Class Reference
Inheritance diagram for jqgrid:

Public Member Functions

 init ()
 
 registerCoreCss ()
 
 registerAssetCss ($cssFile, $media= '')
 
 registerCoreJs ()
 
 registerJS ($jsFile, $position=CClientScript::POS_HEAD)
 
 run ()
 
 getAssetsUrl ()
 

Data Fields

 $coreCss = true
 
 $coreJs = true
 
 $forceCopyAssets = true
 
 $options = array()
 
 $language = ''
 
 $htmlOptions = array()
 

Protected Attributes

 $_assetsUrl
 

Detailed Description

Copyright: milkyway yhxxl.nosp@m.m@gm.nosp@m.ail.c.nosp@m.om Base on http://trirand.com/blog/jqgrid/jqgrid.html Created on 2013-04-10

This extension have to be installed into: <Yii-Application>/proected/extensions/jqgrid

Usage: <?php $this->widget('ext.jqgrid.JqGrid', array( 'id'=>'demo', 'language'=>'cn', 'options'=>array( 'treeGrid'=>'true', 'treeGridModel'=>'adjacency', 'ExpandColumn'=>'name', 'rowNum'=>'-1', 'url'=>'/path/to/grid.json', 'datatype'=>'json', 'treedatatype'=>'json', 'treeIcons'=>array( 'plus'=>'icon-plus', 'minus'=>'icon-minus', 'leaf'=>'icon-cancel', ), 'mtype'=>'POST', 'ExpandColClick'=>'true', 'colNames'=>array('id', 'name'), 'colModel'=>array( array( 'name'=>'id', 'index'=>'id', 'width'=>'100', 'hidden'=>false, 'key'=>true, ), array( 'name'=>'name', 'index'=>'name', 'width'=>'300', 'sortable'=>false, ), ), 'height'=>'auto', 'caption'=>'View Groups', ) )) ?>

See also:https://github.com/tonytomov/jqGrid

Definition at line 55 of file JqGrid.php.

Member Function Documentation

getAssetsUrl ( )

Returns the URL to the published assets folder.

Returns
string the URL

Definition at line 140 of file JqGrid.php.

init ( )

Definition at line 73 of file JqGrid.php.

registerAssetCss (   $cssFile,
  $media = '' 
)

Registers a specific css in the asset's css folder

Parameters
string$cssFilethe css file name to register
string$mediathe media that the CSS file should be applied to. If empty, it means all media types.

Definition at line 97 of file JqGrid.php.

registerCoreCss ( )

Registers the jqgrid CSS.

Definition at line 88 of file JqGrid.php.

registerCoreJs ( )

Registers the jqgrid JS.

Definition at line 104 of file JqGrid.php.

registerJS (   $jsFile,
  $position = CClientScript::POS_HEAD 
)

Registers the jqgrid JavaScript.

Parameters
int$positionthe position of the JavaScript code.
See Also
CClientScript::registerScriptFile

Definition at line 113 of file JqGrid.php.

run ( )

Definition at line 121 of file JqGrid.php.

Field Documentation

$_assetsUrl
protected

Definition at line 71 of file JqGrid.php.

$coreCss = true

Definition at line 57 of file JqGrid.php.

$coreJs = true

Definition at line 58 of file JqGrid.php.

$forceCopyAssets = true

Definition at line 59 of file JqGrid.php.

$htmlOptions = array()

Definition at line 66 of file JqGrid.php.

$language = ''

Definition at line 61 of file JqGrid.php.

$options = array()

Definition at line 60 of file JqGrid.php.


The documentation for this class was generated from the following file: