Pagination Controls

Is it possible to move the pagination links for the table to the bottom of the table or otherwise edit or this customize this aspect of the table?

Hi,

You can do this if you create RowsCount component manually:

    @Inject
    protected Table<User> usersTable;
    @Inject
    protected CollectionDatasource<User, UUID> usersDs;
    @Inject
    protected ComponentsFactory componentsFactory;
    @Inject
    protected HBoxLayout rowsCountBox;

    @Override
    public void init(Map<String, Object> params) {
        super.init(params);

        RowsCount rowsCount = componentsFactory.createComponent(RowsCount.class);
        rowsCount.setAlignment(Alignment.BOTTOM_RIGHT);
        rowsCount.setDatasource(usersDs);
        rowsCount.setOwner(usersTable);

        rowsCountBox.add(rowsCount);

And define rowsCountBox in XML:

<table id="usersTable" width="100%">
    <columns>
        <column id="login"/>
        <column id="name"/>
        <column id="position"/>
    </columns>
    <rows datasource="usersDs"/>
</table>

<hbox id="rowsCountBox" width="100%">

</hbox>

It will be shown in this box instead of Table.

Fantastic!

Thanks Yuriy.