Skip to content

cupertino-files / buildDateField

Function: buildDateField()

buildDateField(store, component, options?): IwaObject

Defined in: src/tswp/fields.ts:236

Build a TSWP.DateTimeSmartFieldArchive.

A date field spans real characters, unlike a page number: the text is in the storage and the app rewrites it when the field updates. So the caller supplies the text to show, and needs_update is set so the app replaces it with its own rendering at the first opportunity — rendering a date the way a given locale and pattern would is Foundation's job, and approximating it here would put subtly wrong text in the document.

Parameters

store

ObjectStore

component

Component

options?

DateFieldOptions = {}

Returns

IwaObject

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.