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 {
57
57
protected $ _hiddenColumns ;
58
58
59
59
protected $ _colWidths ;
60
+
61
+ protected $ _paginationToolbar ;
60
62
61
63
public function __construct ($ identifier , $ model , $ modelInstance = NULL ) {
62
64
parent ::__construct ($ identifier , $ model , $ modelInstance );
@@ -311,7 +313,8 @@ protected function _generatePagination($table) {
311
313
}
312
314
$ footer = $ table ->getFooter ();
313
315
$ footer ->mergeCol ();
314
- $ footer ->addValues ($ this ->_pagination ->generateMenu ($ this ->identifier ));
316
+ $ this ->_paginationToolbar =$ this ->_pagination ->generateMenu ($ this ->identifier );
317
+ $ footer ->addValues ($ this ->_paginationToolbar );
315
318
}
316
319
317
320
protected function _associatePaginationBehavior (JsUtils $ js = NULL , $ offset = null ) {
@@ -701,4 +704,11 @@ public function setGroupByFields($_groupByFields) {
701
704
public function setVisibleHover ($ _visibleHover ) {
702
705
$ this ->_visibleHover = $ _visibleHover ;
703
706
}
707
+ /**
708
+ * @return \Ajax\semantic\html\collections\menus\HtmlPaginationMenu
709
+ */
710
+ public function getPaginationToolbar () {
711
+ return $ this ->_paginationToolbar ;
712
+ }
713
+
704
714
}
You can’t perform that action at this time.
0 commit comments