I need to have a custom table header (title + svg + tooltip) for Element table. I am trying to use the 'render-header' function without luck. To be more specific - how to print the label + SVG (with tooltip on hover) for each column?
Html:
<el-table-column property="name" label="Indicator" :render-header="appendTip">
</el-table-column>
Script:
appendTip(h, { column }) {
return h(
"el-tooltip",
{
attrs: {
effect: "dark",
content: "Test",
placement: "top"
}
},
[h("el-button", ["Tooltip"])]
);
Thanks.