CDialogButtonBox
Widget that manages a standard set of dialog buttons and emits semantic button signals.
import { CDialogButtonBox } from "canvas-toolkit-lib";Declared members
static readonly SPACING: number;readonly accepted: CSignal<[]>;Emitted when an accepting button is activated.
readonly rejected: CSignal<[]>;Emitted when a rejecting button is activated.
readonly clicked: CSignal<[CStandardButton]>;Emitted when a standard button is activated.
constructor(buttons?: CStandardButton, parent?: CWidget | null);Creates a dialog button box. @param buttons Bitwise combination of standard buttons to display. @param parent Optional parent widget.
standardButtons(): CStandardButton;Returns the configured standard buttons. @returns Bitwise combination of standard buttons.
setStandardButtons(buttons: CStandardButton): void;Sets the standard buttons displayed by the box. @param buttons Bitwise combination of buttons to display.
sizeHint(): CSize;Returns the preferred size required by the contained buttons. @returns Preferred widget size.