Skip to main content

DialogButtonProps

@steambrew/client v4.2.1


Interface: DialogButtonProps

Defined in: src/components/Dialog.ts:12

Extends

Extended by

Properties

actionDescriptionMap?

optional actionDescriptionMap: ActionDescriptionMap;

Defined in: src/components/FooterLegend.ts:53

Inherited from

FooterLegendProps.actionDescriptionMap


children?

optional children: ReactNode;

Defined in: src/components/Dialog.ts:9

Inherited from

DialogCommonProps.children


className?

optional className: string;

Defined in: src/components/Dialog.ts:8

Inherited from

DialogCommonProps.className


disabled?

optional disabled: boolean;

Defined in: src/components/Dialog.ts:30

Disables the button - assigned on* methods will not be invoked if clicked.

Note

Depending on where it is, it might still get focus. In such case it can be partially disabled separately.

See

focusable.


focusable?

optional focusable: boolean;

Defined in: src/components/Dialog.ts:40

Enables/disables the navigation based focus on button - you won't be able to navigate to it via the gamepad or keyboard.

Note

If set to false, it still can be clicked and WILL become focused until navigated away. Depending on the context of where the button is, even a disabled button can focused.


key?

optional key: null | Key;

Defined in: node_modules/@types/react/index.d.ts:137

Inherited from

DialogCommonProps.key


noFocusRing?

optional noFocusRing: boolean;

Defined in: src/components/Dialog.ts:19

Enables/disables the focus around the button.

Note

Default value depends on context, so setting it to false will enable it.


onButtonDown()?

optional onButtonDown: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:59

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onButtonDown


onButtonUp()?

optional onButtonUp: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:60

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onButtonUp


onCancelActionDescription?

optional onCancelActionDescription: ReactNode;

Defined in: src/components/FooterLegend.ts:55

Inherited from

FooterLegendProps.onCancelActionDescription


onCancelButton()?

optional onCancelButton: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:62

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onCancelButton


onGamepadBlur()?

optional onGamepadBlur: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:67

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onGamepadBlur


onGamepadDirection()?

optional onGamepadDirection: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:65

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onGamepadDirection


onGamepadFocus()?

optional onGamepadFocus: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:66

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onGamepadFocus


onMenuActionDescription?

optional onMenuActionDescription: ReactNode;

Defined in: src/components/FooterLegend.ts:58

Inherited from

FooterLegendProps.onMenuActionDescription


onMenuButton()?

optional onMenuButton: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:68

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onMenuButton


onOKActionDescription?

optional onOKActionDescription: ReactNode;

Defined in: src/components/FooterLegend.ts:54

Inherited from

FooterLegendProps.onOKActionDescription


onOKButton()?

optional onOKButton: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:61

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onOKButton


onOptionsActionDescription?

optional onOptionsActionDescription: ReactNode;

Defined in: src/components/FooterLegend.ts:57

Inherited from

FooterLegendProps.onOptionsActionDescription


onOptionsButton()?

optional onOptionsButton: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:64

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onOptionsButton


onSecondaryActionDescription?

optional onSecondaryActionDescription: ReactNode;

Defined in: src/components/FooterLegend.ts:56

Inherited from

FooterLegendProps.onSecondaryActionDescription


onSecondaryButton()?

optional onSecondaryButton: (evt: GamepadEvent) => void;

Defined in: src/components/FooterLegend.ts:63

Parameters

evt

GamepadEvent

Returns

void

Inherited from

FooterLegendProps.onSecondaryButton


ref?

optional ref: Ref<HTMLDivElement>;

Defined in: node_modules/@types/react/index.d.ts:140

Inherited from

DialogCommonProps.ref


style?

optional style: CSSProperties;

Defined in: src/components/Dialog.ts:7

Inherited from

DialogCommonProps.style

Methods

onClick()?

optional onClick(e: MouseEvent): void

Defined in: src/components/Dialog.ts:42

Parameters

e

MouseEvent

Returns

void


onMouseDown()?

optional onMouseDown(e: MouseEvent): void

Defined in: src/components/Dialog.ts:46

Parameters

e

MouseEvent

Returns

void


onMouseUp()?

optional onMouseUp(e: MouseEvent): void

Defined in: src/components/Dialog.ts:47

Parameters

e

MouseEvent

Returns

void


onPointerCancel()?

optional onPointerCancel(e: PointerEvent): void

Defined in: src/components/Dialog.ts:45

Parameters

e

PointerEvent

Returns

void


onPointerDown()?

optional onPointerDown(e: PointerEvent): void

Defined in: src/components/Dialog.ts:43

Parameters

e

PointerEvent

Returns

void


onPointerUp()?

optional onPointerUp(e: PointerEvent): void

Defined in: src/components/Dialog.ts:44

Parameters

e

PointerEvent

Returns

void


onSubmit()?

optional onSubmit(e: SubmitEvent): void

Defined in: src/components/Dialog.ts:51

Parameters

e

SubmitEvent

Returns

void


onTouchCancel()?

optional onTouchCancel(e: TouchEvent): void

Defined in: src/components/Dialog.ts:50

Parameters

e

TouchEvent

Returns

void


onTouchEnd()?

optional onTouchEnd(e: TouchEvent): void

Defined in: src/components/Dialog.ts:49

Parameters

e

TouchEvent

Returns

void


onTouchStart()?

optional onTouchStart(e: TouchEvent): void

Defined in: src/components/Dialog.ts:48

Parameters

e

TouchEvent

Returns

void