Skip to content

Commit 087db86

Browse files
committed
pre and post compile regulation
1 parent 9db12b7 commit 087db86

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Ajax/common/html/BaseHtml.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected function compile_once(JsUtils $js=NULL, &$view=NULL) {
200200
}
201201
if(\is_callable($this->_preCompile)){
202202
$pc=$this->_preCompile;
203-
$pc();
203+
$pc($this);
204204
}
205205
$this->_compiled=true;
206206
}
@@ -225,9 +225,10 @@ public function compile(JsUtils $js=NULL, &$view=NULL) {
225225
$js->addViewElement($this->_identifier, $result, $view);
226226
}
227227
}
228+
228229
if(\is_callable($this->_postCompile)){
229230
$pc=$this->_postCompile;
230-
$pc();
231+
$pc($this);
231232
}
232233
return $result;
233234
}

Ajax/semantic/widgets/datatable/DataTable.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,9 @@ public function setColWidths($_colWidths) {
461461
$this->_colWidths = $_colWidths;
462462
return $this;
463463
}
464+
465+
public function setColAlignment($colIndex,$alignment){
466+
$this->content["table"]->setColAlignment($colIndex,$alignment);
467+
return $this;
468+
}
464469
}

0 commit comments

Comments
 (0)