Interface: RsTimePickerProps
Props for the RsTimePicker component.
Extends
Omit<DatePickerProps,"value"|"onChange">
Properties
appearance?
optionalappearance:PickerAppearance
A picker can have different appearances.
Inherited from
Omit.appearance
as?
optionalas:ElementType<any, keyof IntrinsicElements>
You can use a custom element for this component
Inherited from
Omit.as
block?
optionalblock:boolean
Format picker to appear inside a content block
Inherited from
Omit.block
calendarDefaultDate?
optionalcalendarDefaultDate:Date
Calendar panel default presentation date and time
Inherited from
Omit.calendarDefaultDate
caretAs?
optionalcaretAs:null|ElementType<any, keyof IntrinsicElements>
Custom caret component
Inherited from
Omit.caretAs
children?
optionalchildren:ReactNode
Primary content
Inherited from
Omit.children
className?
optionalclassName:string
Additional classes
Inherited from
Omit.className
classPrefix?
optionalclassPrefix:string
The prefix of the component CSS class
Inherited from
Omit.classPrefix
cleanable?
optionalcleanable:boolean
A picker that can clear values
Inherited from
Omit.cleanable
container?
optionalcontainer:HTMLElement| () =>HTMLElement
Sets the rendering container
Inherited from
Omit.container
containerPadding?
optionalcontainerPadding:number
Set the padding of the container.
Inherited from
Omit.containerPadding
defaultOpen?
optionaldefaultOpen:boolean
Initial open menu
Inherited from
Omit.defaultOpen
defaultValue?
optionaldefaultValue:null|Date
Initial value
Inherited from
Omit.defaultValue
disabled?
optionaldisabled:boolean
Whether disabled the component
Inherited from
Omit.disabled
disabledDate()?
optionaldisabledDate: (date?) =>boolean
Whether to disable a date on the calendar view
Parameters
date?
Date
Returns
boolean
date should be disabled (not selectable)
Deprecated
Use shouldDisableDate instead
Inherited from
Omit.disabledDate
disabledHours()?
optionaldisabledHours: (hour,date) =>boolean
Disabled hours
Parameters
hour
number
date
Date
Returns
boolean
Deprecated
Use shouldDisableHour instead
Inherited from
Omit.disabledHours
disabledMinutes()?
optionaldisabledMinutes: (minute,date) =>boolean
Disabled minutes
Parameters
minute
number
date
Date
Returns
boolean
Deprecated
Use shouldDisableMinute instead
Inherited from
Omit.disabledMinutes
disabledSeconds()?
optionaldisabledSeconds: (second,date) =>boolean
Disabled seconds
Parameters
second
number
date
Date
Returns
boolean
Deprecated
Use shouldDisableSecond instead
Inherited from
Omit.disabledSeconds
editable?
optionaleditable:boolean
Rendered as an input, the date can be entered via the keyboard
Inherited from
Omit.editable
format?
optionalformat:string
Format date string
Inherited from
Omit.format
hideHours()?
optionalhideHours: (hour,date) =>boolean
Hide specific hour options
Parameters
hour
number
date
Date
Returns
boolean
Inherited from
Omit.hideHours
hideMinutes()?
optionalhideMinutes: (minute,date) =>boolean
Hide specific minute options
Parameters
minute
number
date
Date
Returns
boolean
Inherited from
Omit.hideMinutes
hideSeconds()?
optionalhideSeconds: (second,date) =>boolean
Hide specific second options
Parameters
second
number
date
Date
Returns
boolean
Inherited from
Omit.hideSeconds
id?
optionalid:string
Inherited from
Omit.id
inline?
optionalinline:boolean
Deprecated
Overrides
Omit.inline
isoWeek?
optionalisoWeek:boolean
ISO 8601 standard, each calendar week begins on Monday and Sunday on the seventh day
See
https://en.wikipedia.org/wiki/ISO_week_date
Inherited from
Omit.isoWeek
label
label:
string
Label for the time picker.
Overrides
Omit.label
limitEndYear?
optionallimitEndYear:number
Set the upper limit of the available year relative to the current selection date
Inherited from
Omit.limitEndYear
limitStartYear?
optionallimitStartYear:number
Set the lower limit of the available year relative to the current selection date
Inherited from
Omit.limitStartYear
loading?
optionalloading:boolean
Whether to display a loading state indicator
Inherited from
Omit.loading
locale?
optionallocale:Partial<DatePickerLocale>
Custom locale
Inherited from
Omit.locale
menuAutoWidth?
optionalmenuAutoWidth:boolean
Picker menu auto width
Inherited from
Omit.menuAutoWidth
menuClassName?
optionalmenuClassName:string
A CSS class to apply to the Menu DOM node.
Inherited from
Omit.menuClassName
menuMaxHeight?
optionalmenuMaxHeight:number
Picker menu max Height
Inherited from
Omit.menuMaxHeight
menuStyle?
optionalmenuStyle:CSSProperties
A style to apply to the Menu DOM node.
Inherited from
Omit.menuStyle
monthDropdownProps?
optionalmonthDropdownProps:MonthDropdownProps
The props for the Month Dropdown component.
Inherited from
Omit.monthDropdownProps
name?
optionalname:string
Name of the form field
Inherited from
Omit.name
onBlur?
optionalonBlur:FocusEventHandler<any>
Called when the component is blurred.
Inherited from
Omit.onBlur
onChange()?
optionalonChange: (value,event) =>void
Callback when value changes.
Parameters
value
null | string
event
SyntheticEvent
Returns
void
onChangeCalendarDate()?
optionalonChangeCalendarDate: (date,event?) =>void
Called when the calendar panel date changes
Parameters
date
Date
event?
SyntheticEvent<Element, Event>
Returns
void
Inherited from
Omit.onChangeCalendarDate
onClean()?
optionalonClean: (event) =>void
Called when clean
Parameters
event
MouseEvent
Returns
void
Inherited from
Omit.onClean
onClose()?
optionalonClose: () =>void
Called when Modal is closed
Returns
void
Inherited from
Omit.onClose
onEnter()?
optionalonEnter: (node) =>void
Callback fired before the Modal transitions in
Parameters
node
HTMLElement
Returns
void
Inherited from
Omit.onEnter
onEntered()?
optionalonEntered: (node) =>void
Callback fired after the Modal finishes transitioning in
Parameters
node
HTMLElement
Returns
void
Inherited from
Omit.onEntered
onEntering()?
optionalonEntering: (node) =>void
Callback fired as the Modal begins to transition in
Parameters
node
HTMLElement
Returns
void
Inherited from
Omit.onEntering
oneTap?
optionaloneTap:boolean
One-click selection date
Inherited from
Omit.oneTap
onExit()?
optionalonExit: (node) =>void
Callback fired right before the Modal transitions out
Parameters
node
HTMLElement
Returns
void
Inherited from
Omit.onExit
onExited()?
optionalonExited: (node) =>void
Callback fired after the Modal finishes transitioning out
Parameters
node
HTMLElement
Returns
void
Inherited from
Omit.onExited
onExiting()?
optionalonExiting: (node) =>void
Callback fired as the Modal begins to transition out
Parameters
node
HTMLElement
Returns
void
Inherited from
Omit.onExiting
onFocus?
optionalonFocus:FocusEventHandler<any>
Called when the component is focused.
Inherited from
Omit.onFocus
onNextMonth()?
optionalonNextMonth: (date) =>void
Called after the next month
Parameters
date
Date
Returns
void
Inherited from
Omit.onNextMonth
onOk()?
optionalonOk: (date,event) =>void
Called after clicking the OK button
Parameters
date
Date
event
SyntheticEvent
Returns
void
Inherited from
Omit.onOk
onOpen()?
optionalonOpen: () =>void
Called when Modal is displayed
Returns
void
Inherited from
Omit.onOpen
onPrevMonth()?
optionalonPrevMonth: (date) =>void
Called after the prev month
Parameters
date
Date
Returns
void
Inherited from
Omit.onPrevMonth
onSelect()?
optionalonSelect: (date,event?) =>void
Called when the option is selected
Parameters
date
Date
event?
SyntheticEvent<Element, Event>
Returns
void
Inherited from
Omit.onSelect
onShortcutClick()?
optionalonShortcutClick: (range,event) =>void
Called after clicking the shortcut button
Parameters
range
RangeType<Date>
event
MouseEvent
Returns
void
Inherited from
Omit.onShortcutClick
onToggleMonthDropdown()?
optionalonToggleMonthDropdown: (toggle) =>void
Called when opening the month view
Parameters
toggle
boolean
Returns
void
Inherited from
Omit.onToggleMonthDropdown
onToggleTimeDropdown()?
optionalonToggleTimeDropdown: (toggle) =>void
Called when opening the time view
Parameters
toggle
boolean
Returns
void
Inherited from
Omit.onToggleTimeDropdown
open?
optionalopen:boolean
Open the menu and control it
Inherited from
Omit.open
placeholder?
optionalplaceholder:ReactNode
Placeholder text
Inherited from
Omit.placeholder
placement?
optionalplacement:Placement
The placement of picker
Inherited from
Omit.placement
plaintext?
optionalplaintext:boolean
Whether plaintext the component
Inherited from
Omit.plaintext
preventOverflow?
optionalpreventOverflow:boolean
Prevent floating element overflow
Inherited from
Omit.preventOverflow
ranges?
optionalranges:RangeType<Date>[]
Predefined date Ranges
Inherited from
Omit.ranges
readOnly?
optionalreadOnly:boolean
Whether read only the component
Inherited from
Omit.readOnly
renderCell()?
optionalrenderCell: (date) =>ReactNode
Custom rendering calendar cell content.
Parameters
date
Date
Returns
ReactNode
Version
5.54.0
Inherited from
Omit.renderCell
renderExtraFooter()?
optionalrenderExtraFooter: () =>ReactNode
Custom render extra footer
Returns
ReactNode
Inherited from
Omit.renderExtraFooter
renderValue()?
optionalrenderValue: (value,format) =>string
Custom rendering of the selected date.
Parameters
value
Date
format
string
Returns
string
Inherited from
Omit.renderValue
shouldDisableDate()?
optionalshouldDisableDate: (date) =>boolean
Whether a date on the calendar view should be disabled
Parameters
date
Date
Returns
boolean
date should be disabled (not selectable)
Inherited from
Omit.shouldDisableDate
shouldDisableHour()?
optionalshouldDisableHour: (hour,date) =>boolean
Disabled hours on the time view
Parameters
hour
number
date
Date
Returns
boolean
Inherited from
Omit.shouldDisableHour
shouldDisableMinute()?
optionalshouldDisableMinute: (minute,date) =>boolean
Disabled minutes on the time view
Parameters
minute
number
date
Date
Returns
boolean
Inherited from
Omit.shouldDisableMinute
shouldDisableSecond()?
optionalshouldDisableSecond: (second,date) =>boolean
Disabled seconds on the time view
Parameters
second
number
date
Date
Returns
boolean
Inherited from
Omit.shouldDisableSecond
showMeridian?
optionalshowMeridian:boolean
Deprecated
Use showMeridiem instead
Inherited from
Omit.showMeridian
showMeridiem?
optionalshowMeridiem:boolean
Meridiem format for 12-hour time
Inherited from
Omit.showMeridiem
showWeekNumbers?
optionalshowWeekNumbers:boolean
Whether to show week numbers
Inherited from
Omit.showWeekNumbers
size?
optionalsize:Size
A picker can have different sizes
Inherited from
Omit.size
style?
optionalstyle:CSSProperties
Additional style
Inherited from
Omit.style
toggleAs?
optionaltoggleAs:ElementType<any, keyof IntrinsicElements>
You can use a custom element for this component
Inherited from
Omit.toggleAs
value?
optionalvalue:string
Value of the time picker.
weekStart?
optionalweekStart:0|3|1|2|4|5|6
The index of the first day of the week (0 - Sunday)
If isoWeek is true, the value of weekStart is ignored.
Default
0
Inherited from
Omit.weekStart