Skip to content

DatePropertyWidgetComponentBase

Unofficial

Base interface for date property widget components.

Import:

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

Signature:

export interface DatePropertyWidgetComponentBase extends PropertyWidgetComponentBase

Extends: PropertyWidgetComponentBase

Properties

Property Type Description
date? moment.Moment The date of the property widget.
dirty boolean Whether the property widget is dirty.
hoverPopup HoverPopover | null The hover popup for the property widget.
inputEl HTMLInputElement The input element for the property widget.
type string The type of the property widget.
(Inherited from PropertyWidgetComponentBase)
value string The value of the property widget.

Methods

Method Returns Description
buildInput(parentEl) HTMLInputElement Build the input element for the property widget.
focus(mode?) void Focus the property widget.
(Inherited from PropertyWidgetComponentBase)
format(input) string Format the date input.
parse(input) void Parse the date input.

Links to this page: