Interface: RsAutoCompleteProps
The properties of the RsAutoComplete component.
Extends
AutoCompleteProps
Properties
appearance?
optionalappearance:PickerAppearance
A picker can have different appearances.
Inherited from
AutoCompleteProps.appearance
as?
optionalas:ElementType<any, keyof IntrinsicElements>
You can use a custom element for this component
Inherited from
AutoCompleteProps.as
autoComplete?
optionalautoComplete:string
AutoComplete Content
Inherited from
AutoCompleteProps.autoComplete
block?
optionalblock:boolean
Format picker to appear inside a content block
Inherited from
AutoCompleteProps.block
children?
optionalchildren:ReactNode
Primary content
Inherited from
AutoCompleteProps.children
childrenKey?
optionalchildrenKey:string
The key to use for setting the children in the data.
Default
children
Inherited from
AutoCompleteProps.childrenKey
className?
optionalclassName:string
The component class name.
Overrides
AutoCompleteProps.className
classPrefix?
optionalclassPrefix:string
The prefix of the component CSS class
Inherited from
AutoCompleteProps.classPrefix
cleanable?
optionalcleanable:boolean
A picker that can clear values
Inherited from
AutoCompleteProps.cleanable
container?
optionalcontainer:HTMLElement| () =>HTMLElement
Sets the rendering container
Inherited from
AutoCompleteProps.container
containerPadding?
optionalcontainerPadding:number
Set the padding of the container.
Inherited from
AutoCompleteProps.containerPadding
data
data: (
string|ItemDataType<string|number>)[]
The data of the component.
Inherited from
AutoCompleteProps.data
defaultOpen?
optionaldefaultOpen:boolean
Initial open menu
Inherited from
AutoCompleteProps.defaultOpen
defaultValue?
optionaldefaultValue:string
Initial value
Inherited from
AutoCompleteProps.defaultValue
disabled?
optionaldisabled:boolean
A picker can show it is currently unable to be interacted with
Inherited from
AutoCompleteProps.disabled
disabledItemValues?
optionaldisabledItemValues:string[]
Disabled items
Inherited from
AutoCompleteProps.disabledItemValues
filterBy()?
optionalfilterBy: (value,item) =>boolean
Custom filter function to determine whether the item will be displayed
Parameters
value
string
item
ItemDataType
Returns
boolean
Inherited from
AutoCompleteProps.filterBy
id?
optionalid:string
Inherited from
AutoCompleteProps.id
label?
optionallabel:string
The component label.
labelKey?
optionallabelKey:string
The key to use for displaying the options in the data.
Default
label
Inherited from
AutoCompleteProps.labelKey
locale?
optionallocale:Partial<any>
Custom locale
Inherited from
AutoCompleteProps.locale
menuAutoWidth?
optionalmenuAutoWidth:boolean
The width of the menu will automatically follow the width of the input box
Inherited from
AutoCompleteProps.menuAutoWidth
menuClassName?
optionalmenuClassName:string
Additional classes for menu
Inherited from
AutoCompleteProps.menuClassName
menuMaxHeight?
optionalmenuMaxHeight:number
Picker menu max Height
Inherited from
AutoCompleteProps.menuMaxHeight
menuStyle?
optionalmenuStyle:CSSProperties
A style to apply to the Menu DOM node.
Inherited from
AutoCompleteProps.menuStyle
name?
optionalname:string
Name of the form field
Inherited from
AutoCompleteProps.name
onBlur?
optionalonBlur:FocusEventHandler<Element>
Called on blur
Inherited from
AutoCompleteProps.onBlur
onChange()?
optionalonChange: (value) =>void
Called after the value has been changed.
Parameters
value
string
the value.
Returns
void
Overrides
AutoCompleteProps.onChange
onClose()?
optionalonClose: () =>void
Called on close
Returns
void
Inherited from
AutoCompleteProps.onClose
onEnter()?
optionalonEnter: (node) =>void
Callback fired before the Modal transitions in
Parameters
node
HTMLElement
Returns
void
Inherited from
AutoCompleteProps.onEnter
onEntered()?
optionalonEntered: (node) =>void
Callback fired after the Modal finishes transitioning in
Parameters
node
HTMLElement
Returns
void
Inherited from
AutoCompleteProps.onEntered
onEntering()?
optionalonEntering: (node) =>void
Callback fired as the Modal begins to transition in
Parameters
node
HTMLElement
Returns
void
Inherited from
AutoCompleteProps.onEntering
onExit()?
optionalonExit: (node) =>void
Callback fired right before the Modal transitions out
Parameters
node
HTMLElement
Returns
void
Inherited from
AutoCompleteProps.onExit
onExited()?
optionalonExited: (node) =>void
Callback fired after the Modal finishes transitioning out
Parameters
node
HTMLElement
Returns
void
Inherited from
AutoCompleteProps.onExited
onExiting()?
optionalonExiting: (node) =>void
Callback fired as the Modal begins to transition out
Parameters
node
HTMLElement
Returns
void
Inherited from
AutoCompleteProps.onExiting
onFocus?
optionalonFocus:FocusEventHandler<Element>
Called on focus
Inherited from
AutoCompleteProps.onFocus
onKeyDown()?
optionalonKeyDown: (event) =>void
The callback triggered by keyboard events.
Parameters
event
KeyboardEvent
Returns
void
Inherited from
AutoCompleteProps.onKeyDown
onMenuFocus()?
optionalonMenuFocus: (focusItemValue,event) =>void
Called on menu focus
Parameters
focusItemValue
any
event
KeyboardEvent
Returns
void
Inherited from
AutoCompleteProps.onMenuFocus
onOpen()?
optionalonOpen: () =>void
Called on open
Returns
void
Inherited from
AutoCompleteProps.onOpen
onSelect()?
optionalonSelect: (value,item,event) =>void
Called when a option is selected
Parameters
value
any
item
ItemDataType
event
SyntheticEvent
Returns
void
Inherited from
AutoCompleteProps.onSelect
open?
optionalopen:boolean
Open the menu and control it
Inherited from
AutoCompleteProps.open
placeholder?
optionalplaceholder:string
Placeholder text
Inherited from
AutoCompleteProps.placeholder
placement?
optionalplacement:Placement
The placement of component
Inherited from
AutoCompleteProps.placement
plaintext?
optionalplaintext:boolean
Render the control as plain text
Inherited from
AutoCompleteProps.plaintext
preventOverflow?
optionalpreventOverflow:boolean
Prevent floating element overflow
Inherited from
AutoCompleteProps.preventOverflow
readOnly?
optionalreadOnly:boolean
Make the control readonly
Inherited from
AutoCompleteProps.readOnly
renderExtraFooter()?
optionalrenderExtraFooter: () =>ReactNode
Custom render extra footer
Returns
ReactNode
Inherited from
AutoCompleteProps.renderExtraFooter
renderMenu()?
optionalrenderMenu: (menu) =>ReactNode
Customizing the Rendering Menu list
Parameters
menu
ReactNode
Returns
ReactNode
Inherited from
AutoCompleteProps.renderMenu
renderMenuItem()?
optionalrenderMenuItem: (label,item) =>ReactNode
Custom selected option
Parameters
label
ReactNode
item
ItemDataType
Returns
ReactNode
Inherited from
AutoCompleteProps.renderMenuItem
selectOnEnter?
optionalselectOnEnter:boolean
When set to false, the Enter key selection function is invalid
Inherited from
AutoCompleteProps.selectOnEnter
size?
optionalsize:Size
A component can have different sizes
Inherited from
AutoCompleteProps.size
style?
optionalstyle:CSSProperties
The component styles.
Overrides
AutoCompleteProps.style
toggleAs?
optionaltoggleAs:ElementType<any, keyof IntrinsicElements>
You can use a custom element for this component
Inherited from
AutoCompleteProps.toggleAs
value?
optionalvalue:string
Current value of the component. Creates a controlled component
Inherited from
AutoCompleteProps.value
valueKey?
optionalvalueKey:string
The key to use for setting the option value in the data.
Default
value
Inherited from
AutoCompleteProps.valueKey