Taack/infra

Builder like pattern for listing object on tables

Closed this issue · 2 comments

it should be wised to hide listing object and paginate from table.

Instead of:

            def roles = taackSimpleFilterService.list(Role, 10, f, null, defaultDirection)

and

        UiTableSpecifier t = new UiTableSpecifier()
        ColumnHeaderFieldSpec.SortableDirection defaultDirection
        t.ui Role, {

To have:

        UiTableSpecifier t = new UiTableSpecifier()
        t.sortColumns(r.authority_).max(10).filter(f).ui Role, {

Must add a symbol into table DSL. Let's call it paginate to get max results..

see iterate table DSL imrpovement ...