Skip to content

Commit b5e440e

Browse files
committed
add hasActiveRowSelector to Semantic tables
1 parent 337a263 commit b5e440e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Ajax/semantic/html/collections/table/HtmlTable.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,10 @@ public function setActiveRowSelector($class="active",$event="click",$multiple=fa
456456
$this->_activeRowSelector=new ActiveRow($this,$class,$event,$multiple);
457457
return $this;
458458
}
459+
460+
public function hasActiveRowSelector(){
461+
return isset($this->_activeRowSelector);
462+
}
459463

460464
public function hideColumn($colIndex){
461465
if(isset($this->content["thead"])){

Ajax/semantic/widgets/datatable/DataTable.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@ public function setActiveRowSelector($class = "active", $event = "click", $multi
616616
$this->_self->setActiveRowSelector($class, $event, $multiple);
617617
return $this;
618618
}
619+
620+
public function hasActiveRowSelector(){
621+
return $this->_self->hasActiveRowSelector();
622+
}
619623

620624
public function hideColumn($colIndex) {
621625
if (! \is_array($this->_hiddenColumns))

0 commit comments

Comments
 (0)