Dynamic Dropdown in DataTable


I am trying to get a Datatable from a dataframe and to apply dynamic dropdown on a specific column.

The tutos give very straightful ways to get a Datatable with static Dropdown on columns, and to get dynamic Dropdown in a Div on the side.

But I cannot get how to combine both to get a dynamic Dropdown in each cell of the Datatable.