Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Tooltips in a list

default discord avatar
renequez2 years ago
5

Hi, I cannot figure how I can work with tooltips in a list.


I've followed the color field tutorial

https://payloadcms.com/blog/building-a-custom-field

, and I want to add a tooltip on hovering each item. I attached a photo with the code.


Basically the tooltips are never showing, I don't get what I should be doing 😦

  • default discord avatar
    notchr2 years ago
    @331906168375083008

    I recently added a tooltip plugin to Payload



    Maybe that could give you some ideas?



    https://github.com/notchris/payload-label-popover
  • default discord avatar
    renequez2 years ago

    thank you,

    @1049775120559898725

    !



    i've actually re-written the tooltip component a bit differently than payload does it, and it works like this

  • default discord avatar
    notchr2 years ago

    So it is working now?

  • default discord avatar
    renequez2 years ago

    yes 👌

  • default discord avatar
    kaspartr2 years ago

    I tried to use this plugin but I get the following error.



    /home/.../node_modules/payload-label-popover/src/index.ts:1
    export { labelPopoverPlugin } from './plugin'
    ^^^^^^
    
    SyntaxError: Unexpected token 'export'
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.