File
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: *
*
|
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
|
|
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
|
|
| 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)
|
A new DialogButtons instance
|