File

src/ui/dialog/dialog-buttons.ts

Description

Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - * www.consultingwerk.com and other contributors as listed * below. All Rights Reserved. * * Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY * KIND, either express or implied. * * Contributors: * *

Index

Properties
Methods

Constructor

constructor(value: string, primary?: boolean, disabled?: boolean, mnemonic?: boolean)
Parameters :
Name Type Optional
value string No
primary boolean Yes
disabled boolean Yes
mnemonic boolean Yes

Properties

Static CANCEL
Type : DialogButtons
Default value : new DialogButtons( 'Cancel', false, false, true )
Public Optional disabled
Type : boolean
Public Optional mnemonic
Type : boolean
Static NO
Type : DialogButtons
Default value : new DialogButtons('No', false, false, true)
Static OK
Type : DialogButtons
Default value : new DialogButtons('OK', true, false, true)
Public Optional primary
Type : boolean
Public value
Type : string
Static YES
Type : unknown
Default value : new DialogButtons('Yes', true, false, true)

Methods

Static create
create(value: string, primary?: boolean, disabled?: boolean, mnemonic?: boolean)

Creates a new DialogButton with the specified parameters.

If primary, disabled, or mnemonic are not provided, defaults are used based on the button value.

Parameters :
Name Type Optional Description
value string No
  • The button text/value
primary boolean Yes
  • Whether the button should have primary styling
disabled boolean Yes
  • Whether the button should be disabled
mnemonic boolean Yes
  • Whether the button should support mnemonic (keyboard shortcut)
Returns : DialogButtons

A new DialogButtons instance

results matching ""

    No results matching ""