Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hom make close toolip button #336

Open
allcho opened this issue Apr 24, 2023 · 2 comments
Open

Hom make close toolip button #336

allcho opened this issue Apr 24, 2023 · 2 comments

Comments

@allcho
Copy link

allcho commented Apr 24, 2023

I have toolip, hom make close toolip, when I click on button?

<Popup
      trigger={<button>{cell.cellData}</button>}
      position="top center"
      closeOnDocumentClick 
  >
                <div className={cellProps[v]?.classNameFullBlock}>
                  <div className='text-xl font-bold text-black-origin'>
                     blablabla
                  <Button 
                    common className='w-full mt-5'
                    onClick={(e:any)=>{
                      how make close here?
                    }}
                  >
                    Close
                  </Button>
              </div>
</Popup>

@allcho allcho changed the title Hom make close toolip Hom make close button toolip Apr 24, 2023
@allcho allcho changed the title Hom make close button toolip Hom make close toolip button Apr 24, 2023
@rsagiev
Copy link

rsagiev commented May 4, 2023

     <Popup
          trigger={<button>open tooltip</button>}
          position="top center"
          closeOnDocumentClick 
      >
        {close => (
          <div>
            <div className='text-xl font-bold text-black-origin'>
              blablabla
              <button 
                common className='w-full mt-5'
                onClick={(e:any) => close()}
              >
                Close
              </button>
            </div>
          </div>
        )}
      </Popup>

@allcho
Copy link
Author

allcho commented May 4, 2023

     <Popup
          trigger={<button>open tooltip</button>}
          position="top center"
          closeOnDocumentClick 
      >
        {close => (
          <div>
            <div className='text-xl font-bold text-black-origin'>
              blablabla
              <button 
                common className='w-full mt-5'
                onClick={(e:any) => close()}
              >
                Close
              </button>
            </div>
          </div>
        )}
      </Popup>

I tried this way but it's doesn't work. That closing a window browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants