April 2018
Intermediate to advanced
202 pages
4h 48m
English
A Grid component can take advantage of the offset and limit parameters described in the previous section by using the setDataProvider method, as follows:
grid.setDataProvider(
(sortOrders, offset, limit) ->
CallRepository.findAll(offset, limit).stream(),
() -> CallRepository.count()
);
The previous code defines two lambda expressions:
The setDataProvider method we used in the previous ...
Read now
Unlock full access