Understanding Next/DaisyUI
Unanswered
Great Skua posted this in #help-forum
Great SkuaOP
I'm trying to work with Next/DaisyUI/Tailwind and in DaisyUI I have modal:
I don't understand what this window.my_modal_3 is, can someone help me?
{/* You can open the modal using ID.showModal() method */}
<button className="btn" onClick={()=>window.my_modal_3.showModal()}>open modal</button>
<dialog id="my_modal_3" className="modal">
<form method="dialog" className="modal-box">
<button className="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
<h3 className="font-bold text-lg">Hello!</h3>
<p className="py-4">Press ESC key or click on ✕ button to close</p>
</form>
</dialog>I don't understand what this window.my_modal_3 is, can someone help me?