Skip to content

Commit 4af60a8

Browse files
authored
Merge pull request #159 from yajra/table-id-getter
Add method getTableId()
2 parents c461df1 + 28c3715 commit 4af60a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Html/HasTable.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ public function setTableId($id)
4343
return $this->setTableAttribute('id', $id);
4444
}
4545

46+
/**
47+
* Get HTML table "id" attribute.
48+
*
49+
* @return string
50+
*/
51+
public function getTableId()
52+
{
53+
return $this->getTableAttribute('id');
54+
}
55+
4656
/**
4757
* Sets HTML table attribute(s).
4858
*

0 commit comments

Comments
 (0)