Using custom CPagination in CDataTable

How can I use a custom CPagination in a CDataTable?
I want to connect my table to the lazy load backend and disable the client-side pagination mechanism. for this purpose, I need to use a CPagination that calls backend on every page change and retrieve data from the backend and show in table.
I can’t found any demo for this situation and I decided to handle it myself.
I checked the documentation and It seems the pagination prop can get a CPagination Object too, but I don’t find any example how to do this.