# Did anyone try to embed Datatables into Topic Body?

**URL:** <https://meta.discourse.org/t/did-anyone-try-to-embed-datatables-into-topic-body/129299>\
**Category:** Feature\
**Created:** [September 23, 2019, 12:59pm UTC](https://meta.discourse.org/t/did-anyone-try-to-embed-datatables-into-topic-body/129299 "2019-09-23T12:59:47Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Post date:** [June 30, 2021, 8:26am UTC](https://meta.discourse.org/t/did-anyone-try-to-embed-datatables-into-topic-body/129299/13 "2021-06-30T08:26:13Z")

</div>

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:

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

```

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

---

_[View the full topic](https://meta.discourse.org/t/did-anyone-try-to-embed-datatables-into-topic-body/129299)._
