Type alias SelectProps

SelectProps: { children?: ReactNode; disabled?: boolean; maxValues?: number; minValues?: number; multiple?: boolean; onChange?: ((event: SelectChangeEvent) => void); onChangeMultiple?: ((values: string[], event: SelectChangeEvent) => void); onChangeValue?: ((value: string, event: SelectChangeEvent) => void); placeholder?: string; value?: string; values?: string[] }

Type declaration

  • Optional children?: ReactNode
  • Optional disabled?: boolean

    When true, the select will be slightly faded, and cannot be interacted with.

  • Optional maxValues?: number

    With multiple, the maximum number of values that can be selected. When multiple is false or not defined, this is always 1.

    This only limits the number of values that can be received by the user. This does not limit the number of values that can be displayed by you.

  • Optional minValues?: number

    With multiple, the minimum number of values that can be selected. When multiple is false or not defined, this is always 1.

    This only limits the number of values that can be received by the user. This does not limit the number of values that can be displayed by you.

  • Optional multiple?: boolean

    Set to true to allow multiple selected values

  • Optional onChange?: ((event: SelectChangeEvent) => void)
      • (event: SelectChangeEvent): void
      • Called when the user inputs a selection. Receives the entire select change event, which can be used to create new replies, etc.

        Parameters

        Returns void

  • Optional onChangeMultiple?: ((values: string[], event: SelectChangeEvent) => void)
      • (values: string[], event: SelectChangeEvent): void
      • Convenience shorthand for onChange, which receives all selected values.

        Parameters

        Returns void

  • Optional onChangeValue?: ((value: string, event: SelectChangeEvent) => void)
      • (value: string, event: SelectChangeEvent): void
      • Convenience shorthand for onChange, which receives the first selected value.

        Parameters

        Returns void

  • Optional placeholder?: string

    The text shown when no value is selected

  • Optional value?: string

    Sets the currently selected value

  • Optional values?: string[]

    Sets the currently selected values, for use with multiple

Generated using TypeDoc