Canvas Toolkit
← Class index

CDateEdit

Widgets · extends CWidget

Implements the date edit widget.

import { CDateEdit } from "canvas-toolkit-lib";

Declared members

static readonly ButtonWidth = 28;
readonly dateChanged: CSignal<[Date]>;

Signal emitted when date changes.

constructor(parent?: CWidget | null);

Creates a new instance.

date(): Date;

Provides date behavior.

setDate(date: Date): void;

Sets the date.

minimumDate(): Date;

Returns the minimum date.

setMinimumDate(date: Date): void;

Sets the minimum date.

maximumDate(): Date;

Returns the maximum date.

setMaximumDate(date: Date): void;

Sets the maximum date.

displayFormat(): string;

Provides display format behavior.

setDisplayFormat(format: string): void;

Sets the display format.

calendarPopup(): boolean;

Provides calendar popup behavior.

setCalendarPopup(enabled: boolean): void;

Sets the calendar popup.

calendarWidget(): CCalendarWidget;

Provides calendar widget behavior.

lineEdit(): CSectionLineEdit;

Provides line edit behavior.

showPopup(): void;

Shows popup.

hidePopup(): void;

Hides popup.

stepUp(): void;

Performs step up.

stepDown(): void;

Performs step down.

setGeometry(x: number, y: number, width: number, height: number): void;

Sets the geometry.

resize(width: number, height: number): void;

Provides resize behavior.

sizeHint(): CSize;

Returns the preferred size of the widget.

destroy(): void;

Releases resources owned by the widget.