Skip to content

DatetimePropertyWidgetComponent

Unofficial

Property widget component for datetimes.

Import:

import type { DatetimePropertyWidgetComponent } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface DatetimePropertyWidgetComponent extends DatePropertyWidgetComponentBase

Extends: DatePropertyWidgetComponentBase

Properties

PropertyTypeDescription
date?moment.MomentThe date of the property widget.
(Inherited from DatePropertyWidgetComponentBase)
dirtybooleanWhether the property widget is dirty.
(Inherited from DatePropertyWidgetComponentBase)
hoverPopupHoverPopover | nullThe hover popup for the property widget.
(Inherited from DatePropertyWidgetComponentBase)
inputElHTMLInputElementThe input element for the property widget.
(Inherited from DatePropertyWidgetComponentBase)
type'datetime'The type of the property widget.
valuestringThe value of the property widget.
(Inherited from DatePropertyWidgetComponentBase)

Methods

MethodReturnsDescription
buildInput(parentEl)HTMLInputElementBuild the input element for the property widget.
(Inherited from DatePropertyWidgetComponentBase)
focus(mode?)voidFocus the property widget.
(Inherited from DatePropertyWidgetComponentBase)
format(input)stringFormat the date input.
(Inherited from DatePropertyWidgetComponentBase)
parse(input)voidParse the date input.
(Inherited from DatePropertyWidgetComponentBase)

Links to this page: