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") )
Functions ¶
Types ¶
type Props ¶
type Props struct {
ID string
Class string
LocaleTag LocaleTag
Mode SelectionMode // Optional: "single" (default) or "range".
Value *time.Time // Selected date (single mode) or range start (range mode).
EndValue *time.Time // Range end date (range mode only).
Name string // Hidden input name for Value.
EndName string // Hidden input name for EndValue. Defaults to Name + "-end".
InitialMonth int // Optional: 0-11 (Default: current or from Value). Controls the initially displayed month view.
InitialYear int // Optional: (Default: current or from Value). Controls the initially displayed year view.
StartOfWeek *Day // Optional: 0-6 [Sun-Sat] (Default: 1).
HideHiddenInput bool // Optional: Hide the hidden input when a parent component owns form submission.
}
type SelectionMode ¶
type SelectionMode string
const ( SelectionModeSingle SelectionMode = "single" SelectionModeRange SelectionMode = "range" )
Click to show internal directories.
Click to hide internal directories.