Skip to content

Commit 7087233

Browse files
committed
Update DataTableFieldAsTrait.php
1 parent cc86277 commit 7087233

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Ajax/semantic/widgets/datatable/DataTableFieldAsTrait.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function insertInFieldButton($index,$caption,$visibleHover=true,$callback
151151
return $this;
152152
}
153153

154-
private function addDefaultButton($icon,$class=null,$visibleHover=true,$callback=null,$key=null){
154+
public function addDefaultButton($icon,$class=null,$visibleHover=true,$callback=null,$key=null){
155155
$this->addField($this->getCallable("getDefaultButton",[$icon,$class,$visibleHover],$callback),$key);
156156
return $this;
157157
}
@@ -252,6 +252,13 @@ public function insertDisplayButtonIn($index,$visibleHover=true,$displayBehavior
252252
$this->_displayBehavior=$displayBehavior;
253253
return $this->insertDefaultButtonIn($index,"eye","_display basic",$visibleHover,$callback,"display");
254254
}
255+
256+
/**
257+
* @return mixed
258+
*/
259+
public function getButtonsColumn() {
260+
return $this->_buttonsColumn;
261+
}
255262

256263
/**
257264
* @param array $_buttons
@@ -260,4 +267,11 @@ public function setButtons($_buttons) {
260267
$this->_buttons = $_buttons;
261268
return $this;
262269
}
270+
271+
/**
272+
* @return string[]
273+
*/
274+
public function getButtons(): array {
275+
return $this->_buttons;
276+
}
263277
}

0 commit comments

Comments
 (0)