Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes

  • Loading branch information...
commit 0ddf42a416c21473e33854f919644c1db9e037cd 1 parent eaec51d
Romans Malinovskis romaninsh authored
Showing with 5 additions and 20 deletions.
  1. +1 −0  lib/View/Example.php
  2. +4 −20 page/jqgrid.php
1  lib/View/Example.php
View
@@ -43,6 +43,7 @@ function set($code,$silent=false){
$res->destroy();
$this->template->del('has_demo');
}
+ return $this;
}
function executeDemo($code){
$page=$this->add('View',null,'Demo');
24 page/jqgrid.php
View
@@ -4,28 +4,12 @@ class page_jqgrid extends Page {
function init(){
parent::init();
+ $this->add('View_Example','pagesource')->set("\n".'$page->add(\'jqgrid/jqGrid\')->setModel(\'Employee\');')
+ ->template->trySet('title','Source');
- $this->add('H2')->set('jqGrid with static source');
- $g=$this->add('jqgrid/jqGrid');//->setModel('Employee');
-
- $g->addColumn('text','hello',array('width'=>300));
- $g->addColumn('text','col2');
-
- $g->setSource(
- array(
- array('hello'=>'world','col2'=>'test'),
- array('hello'=>'of','col2'=>'<b>abc'),
- array('hello'=>'Grid','col2'=>'ok'),
- )
- );
-
- $this->add('H2')->set('jqGrid with Model');
-
- $g=$this->add('jqgrid/jqGrid')->setModel('Employee');
-
-
- $this->add('H2')->set('View Source');
+ $this->add('H2')->set('Add-on source');
+ $this->add('View_Info')->set('The source of an add-on is educational, but you do not need them to get jqGrid working. It is all already included in jqgrid add-on distribution');
$this->add('ViewSource','viewsource')->setFile($f='atk4-addons/jqgrid/lib/jqGrid.php')
->template->trySet('title','Source of '.$f);
Please sign in to comment.
Something went wrong with that request. Please try again.