Table of contents

Public interface

Signature
interface TLUiDialogsContextType {}
Source

packages/tldraw/src/lib/ui/context/dialogs.tsx


Properties

addDialog

Public propertysignature

Signature
addDialog: (
  dialog: Omit<TLUiDialog, 'id'> & {
    id?: string
  }
) => string
References

TLUiDialog


clearDialogs

Public propertysignature

Signature
clearDialogs: () => void

dialogs

Public propertysignature

Signature
dialogs: TLUiDialog[]
References

TLUiDialog


removeDialog

Public propertysignature

Signature
removeDialog: (id: string) => string

updateDialog

Public propertysignature

Signature
updateDialog: (id: string, newDialogData: Partial<TLUiDialog>) => string
References

TLUiDialog


TLUiDialogPropsTLUiDialogTitleProps