Helptext on autotable

Is it possible to add a little helptext icon on autotable headers?
1 Reply
Millan
Millan2mo ago
Currently, this is not officially supported, but I realized that you can get something like this working by doing something like this in a custom column header
<AutoTable
model={api.someModel}
columns={[
{
header: <div>Header content that you can override with your own help text</div>,
field: "aFieldOnYourModel",
},
"otherFields"
]}
/>
<AutoTable
model={api.someModel}
columns={[
{
header: <div>Header content that you can override with your own help text</div>,
field: "aFieldOnYourModel",
},
"otherFields"
]}
/>
This works but it is currently a type error . On the next release, I will update this so that the types work Full support for custom AutoTable column headers has been added in the most recent @gadgetinc/react release

Did you find this page helpful?