Skip to content

@serenity-is/corelib / Decorators / closeButton

Function: closeButton()

closeButton(value): (target, _context?) => void

Defined in: src/types/decorators.ts:111

Legacy decorator that attaches a CloseButtonAttribute to a dialog class.

Parameters

value

boolean = true

Whether the dialog should show a close button. Defaults to true.

Returns

Class decorator.

(target, _context?): void

Parameters

target

Function

_context?

any

Returns

void

Deprecated

Prefer static override [Symbol.typeInfo] = classTypeInfo("...") with CloseButtonAttribute metadata instead.