Skip to content

Make SelectOption generic to support typed custom fields - #4467

Draft
lbwexler wants to merge 1 commit into
developfrom
select-generic-custom-fields
Draft

Make SelectOption generic to support typed custom fields#4467
lbwexler wants to merge 1 commit into
developfrom
select-generic-custom-fields

Conversation

@lbwexler

Copy link
Copy Markdown
Member

Closes #4086

Makes SelectOption generic over an optional custom-fields type, with SelectProps, PickerProps, and SelectEditorProps correspondingly generic. Callbacks like optionRenderer and filterFn get typed access to extra fields carried alongside value/label (e.g. SelectOption<{data: MyRecord}>).

Type-only and non-breaking — runtime already passes custom fields through; defaults preserve existing untyped usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make SelectProps generic so SelectOption can support custom fields

1 participant