Did anyone try to embed Datatables into Topic Body?

Custom ones for each table.

My current approach is to create helper js files with different configurations and choose between them via an attribute in the [wrap] block. Then I do:

dataTables.dataTable(Object.assign(commonConfig, specificConfig(myAttributes)))

But I’d be curious to know if there’s a more flexible solution.

לייק 1