GitHub

Reference machines

dialog

interface 2 type 3 function 1
interface Interfaces 2

# CreateDialogInput

Members

closeOnEscape?
optional closeOnEscape?: boolean
closeOnOutsideClick?
optional closeOnOutsideClick?: boolean
defaultOpen?
optional defaultOpen?: boolean
modal?
optional modal?: boolean

# DialogContext

Members

closeOnEscape
closeOnEscape: boolean
closeOnOutsideClick
closeOnOutsideClick: boolean
modal
modal: boolean
type Type Aliases 3

# DialogEvent

DialogEvent = { type: "OPEN"; } | { type: "CLOSE"; } | { type: "TOGGLE"; } | { open: boolean; type: "SET.OPEN"; } | { type: "ESCAPE"; } | { type: "OUTSIDE_CLICK"; } | { modal: boolean; type: "SET.MODAL"; } | { type: "SET.CLOSE_ON_ESCAPE"; value: boolean; } | { type: "SET.CLOSE_ON_OUTSIDE_CLICK"; value: boolean; }
function Functions 1

# createDialogMachine ( )

createDialogMachine(input?): DialogMachine

Construct a fresh Dialog machine.

Parameters

input?
CreateDialogInput = {}

Returns

DialogMachine