We define the columns that are shown in the table. With lexicons for names, and defining if columns are sortable.

We define toolbar options. One button, to add a new to do, and the limit field that allows the user to change how many results are shown.

We turn our MyExtTodo object into an array. This can do all sorts of pre-processing of the data, but in this example we just return the object's data as-is. We also add Actions that will be shown for each row, with links to edit and delete the object.