Module

x/nano_jsx/ui/index.ts>Dialog

🎯 SSR first, lightweight 1kB JSX library.
Go to Latest
class Dialog
import { Dialog } from "https://dotland.deno.dev/x/nano_jsx@v0.0.33/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)