Skip to content

AB Date Field

Date-only form field with typed input, calendar popup, min/max, and ISO value binding.

HTML tag: c-eb8f3e475b23946f2a645824ec3ec3184

  • calendar date picker in a form
  • date only (not time or timezone)
  • min/max bounded date entry
PropTypeDefaultDescription
labelString
valueString
readonlyBoolean
disabledBoolean
display_formatStringDD/MM/YYYY
minString
maxString
enabledBooleantrue
date_formatString
formatted_valueString
clear_button_visibleBooleantrue
date_onlyBooleantrue
langStringen
themeString
use_in_basic_viewBoolean
label_positionString
label_widthString
input_field_nameStringDate picker
first_day_of_weekNumber1
  • Bind .value as ISO date string (date_only adds time suffix internally on commit).
  • Listen for value-changed when committed value updates; blur on focus leave.
  • Use display_format for shown text; value stores canonical ISO.
  • For time-only use ab-time-field; for datetime/range/timezone use ab-timestamp or Phase 4 timezone fields.
EventDetail
value-changedString
blur
SignatureDescription
_openCalendar()

Do not use for time-only (ab-time-field). Do not use ab-calendar standalone in forms when this field exists. _inputDisplayValue is internal display state, not the public change contract.

<c-eb8f3e475b23946f2a645824ec3ec3184 .label=${'Start date'} .value=${startDate} .min=${minDate} .display_format=${'DD/MM/YYYY'} @value-changed=${onDateChange}></c-eb8f3e475b23946f2a645824ec3ec3184>