New Metronic Docs!Added Integration Docs with Starter Kits Apps for Laravel, Laravel Livewire, Angular, Vue, Symfony, Blazor Server, Django & Flask & more
Browse Docs

Metronic Column controls and table layout causes tooltip to be see through when hovered over in the DataGrid


i have an issue with the DataGrid components from metronic

when i try to add column controls like drag feature etc i have an issue where on one of the columns im rendering a card inside of a tooltip when hovered over a cell in that column for example

its like a tooltip now when i try to add features like drag column or things like that etc my tooltip card becomes see through or transparent, now ive tried playing around and adding z indexes to tooltip and card both but it doesnt seem to work now when i remove those from the tableLayout etc in DataGrid, the tooltip behaves correctly

why is that ? what am i missing ?

heres the relevant file in my repo: https://github.com/moahnaf11/MCA-Metronic/blob/main/src/pages/archived/archived.tsx

lines 240-323 is the accessorKey for that column with the tooltip

lines 723 is the DataGrid with the props

i would appreciate some help

Thank You


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Please try to use below code with proper Portal placement:


<Tooltip> 
<TooltipTrigger asChild>
<span className="cursor-pointer">
Test
</span>
</TooltipTrigger>
<Portal>
<TooltipContent
side="right"
sideOffset={20}
className="shadow-lg rounded-md p-0"
>
<Card className="min-w-[500px] rounded-md">
<CardHeader>
<CardHeading>
<CardTitle className="text-lg">Car Details</CardTitle>
</CardHeading>
</CardHeader>
<CardContent>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
</CardContent>
</Card>
</TooltipContent>
</Portal>
</Tooltip>


Tested and worked well.

All the best!

Regards,
Sean


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(