Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/nano_jsx/ui/index.ts>Dialog

🎯 SSR first, lightweight 1kB JSX library.
Go to Latest
class Dialog
import { Dialog } from "https://deno.land/x/nano_jsx@v0.0.36/ui/index.ts";

Constructors

new
Dialog(options?: DialogOptions)

Properties

defaultActionColor: string
defaultParentId: string

Methods

private
disableScroll()
private
enableScroll()
private
focusAction(focusActionId: string, actions: DialogAction[])
private
getParentElement(parentId: string)
private
handleKeydown(event: KeyboardEvent)
show(options: DialogOptions | null, callback: (event: { name: string; id: string | number; }) => void)