I am using a datatables.net table inside a React app. I want to know how I can create a tooltip on the header of the 'Effective Year Built' column.
componentDidMount() {
this.setupTable(this.props.data);
}
setupTable(data) {
this.$el = $(this.el);
this.$el.DataTable(
{
alternatingRowStyle: true,
sort: 'enable'
data: data,
"oLanguage": {
"sSearch": "Search"
},
columns: [
{
"title": "Parcel ID",
mData: "ParcelID"
},
{
"title": "Land Value",
mData: "TotalLandValue",
render: $.fn.dataTable.render.number(',', '', 0, '$')
},
{
"title": "Effective Year Built",
mData: "effectiveyearbuilt"
}
]
}
)
}
I have tried a number of solutions to no avail. I don't seem to be able to tag a unique id into that particular cell either? Thanks for any help.