Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LocaleDefaultTag = LocaleTag("en-US") LocaleTagChinese = LocaleTag("zh-CN") LocaleTagFrench = LocaleTag("fr-FR") LocaleTagGerman = LocaleTag("de-DE") LocaleTagItalian = LocaleTag("it-IT") LocaleTagJapanese = LocaleTag("ja-JP") LocaleTagPortuguese = LocaleTag("pt-PT") LocaleTagSpanish = LocaleTag("es-ES") )
Common Locale (BCP 47)
Functions ¶
func DatePicker ¶
Types ¶
type Format ¶
type Format string
const ( FormatLOCALE_SHORT Format = "locale-short" // Locale-specific short format (e.g., MM/DD/YY or DD.MM.YY) FormatLOCALE_MEDIUM Format = "locale-medium" // Locale-specific medium format (e.g., Jan 5, 2024 or 5. Jan. 2024) FormatLOCALE_LONG Format = "locale-long" // Locale-specific long format (e.g., January 5, 2024 or 5. Januar 2024) FormatLOCALE_FULL Format = "locale-full" // Locale-specific full format (e.g., Monday, January 5, 2024 or Montag, 5. Januar 2024) )
type Props ¶
type Props struct { ID string Class string Attributes templ.Attributes Name string Value time.Time Form string Format Format // Controls the display format using Intl dateStyle options. LocaleTag LocaleTag // BCP 47 Locale Tag (e.g., "en-US", "es-ES"). Determines language and regional format defaults. StartOfWeek *calendar.Day // Optional: 0-6 [Sun-Sat] (Default: 1). Placeholder string Disabled bool Required bool HasError bool }
Click to show internal directories.
Click to hide internal directories.