cancel
Showing results for 
Search instead for 
Did you mean: 

adf-datatable with pagination

anakin59490
Star Contributor
Star Contributor

Hi,

is-it possible to add pagination to adf-datatable component ?

this is what i try :

My ts file is in attached filed

When i test i got this Error :

line 73 is about the last data-column (see 1rst picture). I think the problem comes from another thing because without paginator component it works.

Thank you in advance

1 ACCEPTED ANSWER

eugenio_romano
Elite Collaborator
Elite Collaborator

I guess you can not use the target as property, in this case, the target has to be a component that implements the navigation interface and the datatbale is not.

View answer in original post

2 REPLIES 2

eugenio_romano
Elite Collaborator
Elite Collaborator

I guess you can not use the target as property, in this case, the target has to be a component that implements the navigation interface and the datatbale is not.

wolf354
Champ in-the-making
Champ in-the-making

Yes, it is much easier than what I was looking and clearly the support team and the devs working on Alfresco don´t seem to have much contact Smiley Tongue

Import a Pagination element and apply it to the the same source as your datatable.
Check this example https://github.com/AlfrescoArchive/adf-examples/blob/master/ADF_1.8.0/adf-demo-partner-summit/app/co... + the html.

I got it working, and merry christmas Smiley Wink