import{_ as t,c as a,a0 as o,o as i}from"./chunks/framework.P9qPzDnn.js";const u=JSON.parse('{"title":"Function: createDismissableNotify()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/notifications/functions/createDismissableNotify.md","filePath":"api/game/notifications/functions/createDismissableNotify.md","lastUpdated":null}'),r={name:"api/game/notifications/functions/createDismissableNotify.md"};function n(s,e,c,l,d,f){return i(),a("div",null,e[0]||(e[0]=[o('

Profectus / game/notifications / createDismissableNotify

Function: createDismissableNotify()

createDismissableNotify(element, shouldNotify): Ref<boolean>

Create a boolean ref that will automatically be set based on the given condition, but also dismissed when hovering over a given element, typically the element where acting upon the notification would take place.

Parameters

element

VueFeature

The element that will dismiss the notification on hover.

shouldNotify

A function or ref that determines if the notif should be active currently or not.

Ref<boolean, boolean> | () => boolean

Returns

Ref<boolean>

Defined in

profectus/src/game/notifications.ts:35

',15)]))}const p=t(r,[["render",n]]);export{u as __pageData,p as default};