SandDance

Hierarchy

  • IDialogProps
    • IDialogProps

Index

Properties

Optional ariaDescribedById

ariaDescribedById: string

Optional id for aria-DescribedBy

deprecated

Pass through via modalProps.subtitleAriaId instead.

Optional ariaLabelledById

ariaLabelledById: string

Optional id for aria-LabelledBy

deprecated

Pass through via modalProps.titleAriaId instead.

Optional buttons

buttons: Element | Element[]

Optional children

children: ReactNode

Optional className

className: string

Optional class name to be added to the root class

deprecated

Pass through via modalProps.className instead

Optional closeButtonAriaLabel

closeButtonAriaLabel: string

Aria label on close button.

Optional componentRef

componentRef: IRefObject<IDialog>
deprecated

Unused, returns no value

Optional containerClassName

containerClassName: string

Optional override for container class

deprecated

Pass through via modalProps.className instead

Optional contentClassName

contentClassName: string

Optional override content class

deprecated

Pass through via dialogContentProps instead as className.

Optional dialogContentProps

dialogContentProps: IDialogContentProps

Props to be passed through to Dialog Content

Optional disableRestoreFocus

disableRestoreFocus: boolean

If false (the default), the control's FocusTrapZone will restore focus to the element which activated it once the trap zone is unmounted or disabled. Set to true to disable this behavior.

defaultvalue

false

Optional elementToFocusOnDismiss

elementToFocusOnDismiss: HTMLElement

Sets the element to focus on when exiting the control's FocusTrapZone.

defaultvalue

The element.target that triggered the control opening.

Optional firstFocusableSelector

firstFocusableSelector: string | (() => string)

Class name (not actual selector) for first focusable item. Do not append a dot.

Optional forceFocusInsideTrap

forceFocusInsideTrap: boolean

Whether control should force focus inside its focus trap zone.

defaultvalue

true

Optional hidden

hidden: boolean

Whether the dialog is hidden.

defaultvalue

true

Optional ignoreExternalFocusing

ignoreExternalFocusing: boolean
deprecated

Use disableRestoreFocus (it has the same behavior and a clearer name).

Optional isBlocking

isBlocking: boolean

Whether the dialog can be light dismissed by clicking outside the dialog (on the overlay).

defaultvalue

false

deprecated

Pass through via modalProps instead

Optional isClickableOutsideFocusTrap

isClickableOutsideFocusTrap: boolean

Whether this control will allow clicks outside its FocusTrapZone.

defaultvalue

false

Optional isDarkOverlay

isDarkOverlay: boolean

Whether the overlay is dark themed.

defaultvalue

true

deprecated

Pass through via modalProps instead

Optional isOpen

isOpen: boolean

Whether the dialog is displayed.

defaultvalue

false

deprecated

Use hidden instead

Optional key

key: Key

Optional maxWidth

maxWidth: string | number

Sets the maximum width for the dialog. It limits the width property to be larger than the value specified in max-width.

Optional minWidth

minWidth: string | number

Sets the minimum width of the dialog. It limits the width property to be not smaller than the value specified in min-width.

Optional modalProps

modalProps: IModalProps

Props to be passed through to Modal

Optional ref

ref: LegacyRef<DialogBase>

Optional responsiveMode

responsiveMode: ResponsiveMode

Optional styles

styles: IStyleFunctionOrObject<IDialogStyleProps, IDialogStyles>

Call to provide customized styling that will layer on top of the variant rules

Optional subText

subText: string

The subtext to display in the dialog.

deprecated

Pass through via dialogContentProps instead.

Optional theme

theme: ITheme

Theme provided by HOC.

Optional title

title: string

Optional topButtonsProps

topButtonsProps: IButtonProps[]

Other top buttons that will show up next to the close button

deprecated

Pass through via dialogContentProps instead.

Optional type

type: DialogType

The type of Dialog to display.

defaultvalue

DialogType.normal

deprecated

Pass through via dialogContentProps instead.

Methods

Optional onDismiss

  • onDismiss(ev?: MouseEvent<HTMLButtonElement, MouseEvent>): any
  • A callback function for when the Dialog is dismissed from the close button or light dismiss. Can also be specified separately in content and modal.

    Parameters

    • Optional ev: MouseEvent<HTMLButtonElement, MouseEvent>

    Returns any

Optional onDismissed

  • onDismissed(): any
  • A callback function which is called after the Dialog is dismissed and the animation is complete.

    deprecated

    Pass through via modalProps instead

    Returns any

Optional onLayerDidMount

  • onLayerDidMount(): void
  • A callback function for when the Dialog content is mounted on the overlay layer

    deprecated

    Pass through via modalProps.layerProps instead

    Returns void

Optional onLayerMounted

  • onLayerMounted(): void
  • Deprecated at 0.81.2.

    deprecated

    Use onLayerDidMount instead.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc