Ag-grid: styling the pagination component

Created on 26 Oct 2016  路  3Comments  路  Source: ag-grid/ag-grid

Hi is there any option for including the custom pagination look and feel for the ag-grid such as

image

Please let me know thanks?

Most helpful comment

no - but we plan to rework the pagination panel later this year, which will also mean customisable templates for it.

All 3 comments

no - but we plan to rework the pagination panel later this year, which will also mean customisable templates for it.

I think you can style it your self, for instance, the one I use is looks something like this:

screenshot from 2017-11-10 11-32-46

CSS:

.ag-header-row {
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
}
.ag-header-cell-resize {
  width: 1px;
  height: 70%;
  background-color: #ccc;
}

.ag-paging-panel {
  float: right;
}

.ag-paging-button {
  border: none;
  background: #fff;
}

.ag-paging-row-summary-panel {
  text-align: right;
}

.ag-cell-label-container,
.ag-header-cell-label {
  height: 100%;
}

JS:(font-awesome)

$("button[ref=btPrevious]").html('<i class="fa fa-step-backward" />');
$("button[ref=btFirst]").html('<i class="fa fa-fast-backward" />');
$("button[ref=btNext]").html('<i class="fa fa-step-forward" />');
$("button[ref=btLast]").html('<i class="fa fa-fast-forward" />');

How can I change the height properly of the pagination panel?
Using this css rule work until user go in browser fullscreen (F11) wich produce a new scrollbar
.ag-theme-material .ag-paging-panel{
height: 32px;
}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ceolter picture ceolter  路  3Comments

LuisPalacios picture LuisPalacios  路  3Comments

rboughani picture rboughani  路  3Comments

DominicTobias picture DominicTobias  路  3Comments

ballwood picture ballwood  路  3Comments