File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Ajax/semantic/widgets/datatable Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ class DataTable extends Widget {
5757 protected $ _hiddenColumns ;
5858
5959 protected $ _colWidths ;
60+
61+ protected $ _paginationToolbar ;
6062
6163 public function __construct ($ identifier , $ model , $ modelInstance = NULL ) {
6264 parent ::__construct ($ identifier , $ model , $ modelInstance );
@@ -311,7 +313,8 @@ protected function _generatePagination($table) {
311313 }
312314 $ footer = $ table ->getFooter ();
313315 $ footer ->mergeCol ();
314- $ footer ->addValues ($ this ->_pagination ->generateMenu ($ this ->identifier ));
316+ $ this ->_paginationToolbar =$ this ->_pagination ->generateMenu ($ this ->identifier );
317+ $ footer ->addValues ($ this ->_paginationToolbar );
315318 }
316319
317320 protected function _associatePaginationBehavior (JsUtils $ js = NULL , $ offset = null ) {
@@ -701,4 +704,11 @@ public function setGroupByFields($_groupByFields) {
701704 public function setVisibleHover ($ _visibleHover ) {
702705 $ this ->_visibleHover = $ _visibleHover ;
703706 }
707+ /**
708+ * @return \Ajax\semantic\html\collections\menus\HtmlPaginationMenu
709+ */
710+ public function getPaginationToolbar () {
711+ return $ this ->_paginationToolbar ;
712+ }
713+
704714}
You can’t perform that action at this time.
0 commit comments