Interface: NamespaceSelectProps#
Renderer.Component.NamespaceSelectProps
Hierarchy#
↳ NamespaceSelectProps
Table of contents#
Properties#
- allowCreateWhileLoading
- aria-label
- aria-labelledby
- autoConvertOptions
- autoFocus
- backspaceRemovesValue
- blurInputOnSelect
- captureMenuScroll
- className
- classNamePrefix
- closeMenuOnScroll
- closeMenuOnSelect
- components
- controlShouldRenderValue
- createOptionPosition
- defaultInputValue
- defaultMenuIsOpen
- defaultValue
- delimiter
- escapeClearsValue
- filterOption
- formatGroupLabel
- getOptionLabel
- getOptionValue
- hideSelectedOptions
- id
- inputId
- inputValue
- instanceId
- isClearable
- isCreatable
- isDisabled
- isLoading
- isMulti
- isRtl
- isSearchable
- maxMenuHeight
- menuClass
- menuIsOpen
- menuPlacement
- menuPortalTarget
- menuPosition
- menuShouldBlockScroll
- menuShouldScrollIntoView
- minMenuHeight
- name
- onBlur
- onFocus
- onKeyDown
- openMenuOnClick
- openMenuOnFocus
- options
- pageSize
- placeholder
- showAllNamespacesOption
- showIcons
- styles
- tabIndex
- tabSelectsValue
- theme
- themeName
- value
Methods#
- customizeOptions
- formatCreateLabel
- formatOptionLabel
- getNewOptionData
- isOptionDisabled
- isOptionSelected
- isValidNewOption
- loadingMessage
- noOptionsMessage
- onChange
- onCreateOption
- onInputChange
- onMenuClose
- onMenuOpen
- onMenuScrollToBottom
- onMenuScrollToTop
- screenReaderStatus
- sort
Properties#
allowCreateWhileLoading#
• Optional allowCreateWhileLoading: boolean
Inherited from#
SelectProps.allowCreateWhileLoading
aria-label#
• Optional aria-label: string
Inherited from#
aria-labelledby#
• Optional aria-labelledby: string
Inherited from#
autoConvertOptions#
• Optional autoConvertOptions: boolean
Inherited from#
SelectProps.autoConvertOptions
autoFocus#
• Optional autoFocus: boolean
Inherited from#
backspaceRemovesValue#
• Optional backspaceRemovesValue: boolean
Inherited from#
SelectProps.backspaceRemovesValue
blurInputOnSelect#
• Optional blurInputOnSelect: boolean
Inherited from#
captureMenuScroll#
• Optional captureMenuScroll: boolean
Inherited from#
className#
• Optional className: string
Inherited from#
classNamePrefix#
• Optional classNamePrefix: string
Inherited from#
closeMenuOnScroll#
• Optional closeMenuOnScroll: boolean | EventListener
Inherited from#
closeMenuOnSelect#
• Optional closeMenuOnSelect: boolean
Inherited from#
components#
• Optional components: Partial<SelectComponents<any, boolean>>
Inherited from#
controlShouldRenderValue#
• Optional controlShouldRenderValue: boolean
Inherited from#
SelectProps.controlShouldRenderValue
createOptionPosition#
• Optional createOptionPosition: "first" | "last"
Inherited from#
SelectProps.createOptionPosition
defaultInputValue#
• Optional defaultInputValue: string
Inherited from#
defaultMenuIsOpen#
• Optional defaultMenuIsOpen: boolean
Inherited from#
defaultValue#
• Optional defaultValue: any
Inherited from#
delimiter#
• Optional delimiter: string
Inherited from#
escapeClearsValue#
• Optional escapeClearsValue: boolean
Inherited from#
filterOption#
• Optional filterOption: (option: Option, rawInput: string) => boolean
Type declaration#
▸ (option, rawInput): boolean
Parameters#
| Name | Type |
|---|---|
option |
Option |
rawInput |
string |
Returns#
boolean
Inherited from#
formatGroupLabel#
• Optional formatGroupLabel: formatGroupLabel<any>
Inherited from#
getOptionLabel#
• Optional getOptionLabel: getOptionLabel<any>
Inherited from#
getOptionValue#
• Optional getOptionValue: getOptionValue<any>
Inherited from#
hideSelectedOptions#
• Optional hideSelectedOptions: boolean
Inherited from#
SelectProps.hideSelectedOptions
id#
• Optional id: string
Inherited from#
inputId#
• Optional inputId: string
Inherited from#
inputValue#
• Optional inputValue: string
Inherited from#
instanceId#
• Optional instanceId: string | number
Inherited from#
isClearable#
• Optional isClearable: boolean
Inherited from#
isCreatable#
• Optional isCreatable: boolean
Inherited from#
isDisabled#
• Optional isDisabled: boolean
Inherited from#
isLoading#
• Optional isLoading: boolean
Inherited from#
isMulti#
• Optional isMulti: boolean
Inherited from#
isRtl#
• Optional isRtl: boolean
Inherited from#
isSearchable#
• Optional isSearchable: boolean
Inherited from#
maxMenuHeight#
• Optional maxMenuHeight: number
Inherited from#
menuClass#
• Optional menuClass: string
Inherited from#
menuIsOpen#
• Optional menuIsOpen: boolean
Inherited from#
menuPlacement#
• Optional menuPlacement: MenuPlacement
Inherited from#
menuPortalTarget#
• Optional menuPortalTarget: HTMLElement
Inherited from#
menuPosition#
• Optional menuPosition: MenuPosition
Inherited from#
menuShouldBlockScroll#
• Optional menuShouldBlockScroll: boolean
Inherited from#
SelectProps.menuShouldBlockScroll
menuShouldScrollIntoView#
• Optional menuShouldScrollIntoView: boolean
Inherited from#
SelectProps.menuShouldScrollIntoView
minMenuHeight#
• Optional minMenuHeight: number
Inherited from#
name#
• Optional name: string
Inherited from#
onBlur#
• Optional onBlur: FocusEventHandler
Inherited from#
onFocus#
• Optional onFocus: FocusEventHandler
Inherited from#
onKeyDown#
• Optional onKeyDown: KeyboardEventHandler
Inherited from#
openMenuOnClick#
• Optional openMenuOnClick: boolean
Inherited from#
openMenuOnFocus#
• Optional openMenuOnFocus: boolean
Inherited from#
options#
• Optional options: OptionsType<any> | GroupedOptionsType<any>
Inherited from#
pageSize#
• Optional pageSize: number
Inherited from#
placeholder#
• Optional placeholder: ReactNode
Inherited from#
showAllNamespacesOption#
• Optional showAllNamespacesOption: boolean
showIcons#
• Optional showIcons: boolean
styles#
• Optional styles: Partial<Styles<any, boolean>>
Inherited from#
tabIndex#
• Optional tabIndex: string
Inherited from#
tabSelectsValue#
• Optional tabSelectsValue: boolean
Inherited from#
theme#
• Optional theme: ThemeConfig
Inherited from#
themeName#
• Optional themeName: "lens" | "light" | "outlined" | "dark"
Inherited from#
value#
• Optional value: any
Inherited from#
Methods#
customizeOptions#
▸ Optional customizeOptions(options): SelectOption<any>[]
Parameters#
| Name | Type |
|---|---|
options |
SelectOption<any>[] |
Returns#
SelectOption<any>[]
formatCreateLabel#
▸ Optional formatCreateLabel(inputValue): ReactNode
Parameters#
| Name | Type |
|---|---|
inputValue |
string |
Returns#
ReactNode
Inherited from#
formatOptionLabel#
▸ Optional formatOptionLabel(option, labelMeta): ReactNode
Parameters#
| Name | Type |
|---|---|
option |
OptionType |
labelMeta |
FormatOptionLabelMeta<OptionType, IsMulti> |
Returns#
ReactNode
Inherited from#
getNewOptionData#
▸ Optional getNewOptionData(inputValue, optionLabel): OptionType
Parameters#
| Name | Type |
|---|---|
inputValue |
string |
optionLabel |
ReactNode |
Returns#
OptionType
Inherited from#
isOptionDisabled#
▸ Optional isOptionDisabled(option, options): boolean
Parameters#
| Name | Type |
|---|---|
option |
OptionType |
options |
OptionsType<OptionType> |
Returns#
boolean
Inherited from#
isOptionSelected#
▸ Optional isOptionSelected(option, options): boolean
Parameters#
| Name | Type |
|---|---|
option |
OptionType |
options |
OptionsType<OptionType> |
Returns#
boolean
Inherited from#
isValidNewOption#
▸ Optional isValidNewOption(inputValue, value, options): boolean
Parameters#
| Name | Type |
|---|---|
inputValue |
string |
value |
IsMulti extends true ? OptionsType<OptionType> : OptionType |
options |
OptionsType<OptionType> | GroupedOptionsType<OptionType> |
Returns#
boolean
Inherited from#
loadingMessage#
▸ Optional loadingMessage(obj): string
Parameters#
| Name | Type |
|---|---|
obj |
Object |
obj.inputValue |
string |
Returns#
string
Inherited from#
noOptionsMessage#
▸ Optional noOptionsMessage(obj): string
Parameters#
| Name | Type |
|---|---|
obj |
Object |
obj.inputValue |
string |
Returns#
string
Inherited from#
onChange#
▸ Optional onChange(option, meta?): void
Parameters#
| Name | Type |
|---|---|
option |
any |
meta? |
ActionMeta<any> |
Returns#
void
Inherited from#
onCreateOption#
▸ Optional onCreateOption(inputValue): void
Parameters#
| Name | Type |
|---|---|
inputValue |
string |
Returns#
void
Inherited from#
onInputChange#
▸ Optional onInputChange(newValue, actionMeta): void
Parameters#
| Name | Type |
|---|---|
newValue |
string |
actionMeta |
InputActionMeta |
Returns#
void
Inherited from#
onMenuClose#
▸ Optional onMenuClose(): void
Returns#
void
Inherited from#
onMenuOpen#
▸ Optional onMenuOpen(): void
Returns#
void
Inherited from#
onMenuScrollToBottom#
▸ Optional onMenuScrollToBottom(event): void
Parameters#
| Name | Type |
|---|---|
event |
SyntheticEvent<HTMLElement, Event> |
Returns#
void
Inherited from#
SelectProps.onMenuScrollToBottom
onMenuScrollToTop#
▸ Optional onMenuScrollToTop(event): void
Parameters#
| Name | Type |
|---|---|
event |
SyntheticEvent<HTMLElement, Event> |
Returns#
void
Inherited from#
screenReaderStatus#
▸ Optional screenReaderStatus(obj): string
Parameters#
| Name | Type |
|---|---|
obj |
Object |
obj.count |
number |
Returns#
string
Inherited from#
SelectProps.screenReaderStatus
sort#
▸ Optional sort(a, b): number
Parameters#
| Name | Type |
|---|---|
a |
SelectOption<string> |
b |
SelectOption<string> |
Returns#
number