Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99791387
SelectInput.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 26, 15:52
Size
1 KB
Mime Type
text/x-java
Expires
Tue, Jan 28, 15:52 (2 d)
Engine
blob
Format
Raw Data
Handle
23823217
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
SelectInput.d.ts
View Options
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from '..';
import { MenuProps } from '../Menu';
/**
* The change can be caused by different kind of events.
* The type of event depends on what caused the change.
* For example, when the browser auto-fills the `Select` you'll receive a `React.ChangeEvent`.
*/
export type SelectChangeEvent<T = string> =
| (Event & { target: { value: T; name: string } })
| React.ChangeEvent<HTMLInputElement>;
export interface SelectInputProps<T = unknown> {
autoFocus?: boolean;
autoWidth: boolean;
defaultOpen?: boolean;
disabled?: boolean;
IconComponent?: React.ElementType;
inputRef?: (
ref: HTMLSelectElement | { node: HTMLInputElement; value: SelectInputProps<T>['value'] },
) => void;
MenuProps?: Partial<MenuProps>;
multiple: boolean;
name?: string;
native: boolean;
onBlur?: React.FocusEventHandler<any>;
onChange?: (event: SelectChangeEvent<T>, child: React.ReactNode) => void;
onClose?: (event: React.SyntheticEvent) => void;
onFocus?: React.FocusEventHandler<any>;
onOpen?: (event: React.SyntheticEvent) => void;
open?: boolean;
readOnly?: boolean;
renderValue?: (value: SelectInputProps<T>['value']) => React.ReactNode;
SelectDisplayProps?: React.HTMLAttributes<HTMLDivElement>;
sx?: SxProps<Theme>;
tabIndex?: number;
value?: T;
variant?: 'standard' | 'outlined' | 'filled';
}
declare const SelectInput: React.JSXElementConstructor<SelectInputProps>;
export default SelectInput;
Event Timeline
Log In to Comment