How to add a datatable pager to a toolbar or other component?

I’m aiming to allow my users to display a variable number of data tables simultaneously inside an accordion layout. The examples in the docs assume only 1 data table exists and that it’s div is hard coded into the HTML. Instead, I’d like to wrap each of these data tables with their own pagers, preferably where the number of items a pager makes visible depends on the vertical height of the view. How can I dynamically create these containers when I create a new data table?

I still don’t really know how to go about this, but I found I can at least create new divs using the API.

http://docs.webix.com/api__html_create.html

You can add as many accordion items with datatables as you wish. Each of the datatables can be equipped with its own pager. Check the snippet, please: http://webix.com/snippet/90d42e4f

Excellent! Thanks for the example.