Skip to content

Commit b3219e1

Browse files
committed
6 bug fixed
1 parent b65ced6 commit b3219e1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Ajax/common/html/traits/BaseHtmlPropertiesTrait.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Ajax\common\html\traits;
33

44
use Ajax\service\JString;
5+
use Ajax\common\html\BaseHtml;
56

67
/**
78
* @author jc
@@ -11,10 +12,15 @@ trait BaseHtmlPropertiesTrait{
1112

1213
protected $properties=array ();
1314
abstract protected function ctrl($name, $value, $typeCtrl);
15+
abstract protected function removeOldValues(&$oldValue, $allValues);
1416
public function getProperties() {
1517
return $this->properties;
1618
}
1719

20+
/**
21+
* @param array|string $properties
22+
* @return BaseHtml
23+
*/
1824
public function setProperties($properties) {
1925
$this->properties=$properties;
2026
return $this;

Ajax/semantic/widgets/datatable/DataTableFieldAsTrait.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
* @author jc
99
* @property boolean $_hasDelete
1010
* @property boolean $_hasEdit
11-
* @property boolean $_visibleHover;
11+
* @property boolean $_visibleHover
1212
* @property InstanceViewer $_instanceViewer
1313
*/
1414
trait DataTableFieldAsTrait{
1515
abstract public function addField($field);
1616
abstract public function insertField($index,$field);
1717
abstract public function insertInField($index,$field);
18+
abstract public function fieldAs($index,$type,$attributes=NULL);
1819
/**
1920
* @param string $caption
2021
* @param callable $callback
@@ -140,6 +141,12 @@ private function getDefaultButton($icon,$class=null,$visibleHover=true){
140141
return $bt;
141142
}
142143

144+
/**
145+
* @param boolean $visibleHover
146+
* @param boolean $generateBehavior
147+
* @param callable $callback
148+
* @return \Ajax\semantic\widgets\datatable\DataTableFieldAsTrait
149+
*/
143150
public function addDeleteButton($visibleHover=true,$generateBehavior=true,$callback=null){
144151
$this->_hasDelete=$generateBehavior;
145152
return $this->addDefaultButton("remove","delete red basic",$visibleHover,$callback);

0 commit comments

Comments
 (0)