Canvas Toolkit
← Class index

CDateTimeEdit

Widgets · extends CWidget

Implements the date time edit widget.

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

Declared members

readonly dateTimeChanged: CSignal<[Date]>;

Signal emitted when date time changes.

readonly dateChanged: CSignal<[Date]>;

Signal emitted when date changes.

readonly timeChanged: CSignal<[Date]>;

Signal emitted when time changes.

constructor(parent?: CWidget | null);

Creates a new instance.

hasFocus(): boolean;

Reports logical focus in either the date or time editor.

setFocusPolicy(policy: CFocusPolicy): void;

Applies the focus policy to both embedded editors.

dateTime(): Date;

Provides date time behavior.

setDateTime(dateTime: Date): void;

Sets the date time.

date(): Date;

Provides date behavior.

setDate(date: Date): void;

Sets the date.

time(): Date;

Provides time behavior.

setTime(time: Date): void;

Sets the time.

minimumDateTime(): Date;

Returns the minimum date time.

setMinimumDateTime(dateTime: Date): void;

Sets the minimum date time.

maximumDateTime(): Date;

Returns the maximum date time.

setMaximumDateTime(dateTime: Date): void;

Sets the maximum date time.

dateDisplayFormat(): string;

Provides date display format behavior.

setDateDisplayFormat(format: string): void;

Sets the date display format.

timeDisplayFormat(): string;

Provides time display format behavior.

setTimeDisplayFormat(format: string): void;

Sets the time display format.

calendarPopup(): boolean;

Provides calendar popup behavior.

setCalendarPopup(enabled: boolean): void;

Sets the calendar popup.

showPopup(): void;

Shows popup.

hidePopup(): void;

Hides popup.

calendarWidget(): CCalendarWidget;

Provides calendar widget behavior.

dateEdit(): CDateEdit;

Provides date edit behavior.

timeEdit(): CTimeEdit;

Provides time edit behavior.

dateLineEdit(): CSectionLineEdit;

Provides date line edit behavior.

timeLineEdit(): CSectionLineEdit;

Provides time line edit behavior.

sizeHint(): CSize;

Returns the preferred size of the widget.

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

Sets the geometry.

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

Provides resize behavior.