Skip to main content

DatePeriodInput -Date range input

Effect demonstration

1. Default effect

<DatePeriodInput label="Order time" mode='date' />

API

PropertiesRequiredDescriptionTypeDefault Value
indicatorBackgroundColorfalseIndicator background colorstring
itemTextStylefalseData row text styleTextStyle
itemHeightfalseData row heightnumber
itemStylefalseData row styleViewStyle
containerStylefalseSelector container styleViewStyle
modefalsedisplay modeDateMode
labelUnitfalseunit textLabelUnit
formatfalseDate formattingstringYYYY-MM-DD
titlefalseSelector titlestring
onClosefalsePop-up window closing event() => void
cancelTextfalseCancel button textstringCancel
okTextfalseConfirm button textstringOK
activeOpacityfalseOpacity when pressednumber0.6
labelfalselabel textReactNode
placeholdersfalseDefault promptstring[]['Please select', 'Please select']
valuefalseCurrent date[Date, Date][undefined,undefined]
onChangefalseModify date event(value) => void
allowClearfalseWhether to allow clearingbooleantrue
disabledfalseWhether to disablebooleanfalse