How to pass multiple functions name in component field?

0 Answers 68 Views
DropDownList Input
Sachin
Top achievements
Rank 1
Iron
Iron
Sachin asked on 16 Nov 2022, 03:21 PM | edited on 16 Nov 2022, 03:22 PM

Hello,

I want to pass multiple function name in the component, Kindly let me know how can I achieve this?

<Field
name={"Firstname"}
maxLength={firstNameMax}
value={firstname}
onChange={handleFirstName}
component={ContactDetails}
label={"First Name"}
validator={nameValidator}
/>
Wissam
Telerik team
commented on 18 Nov 2022, 08:24 AM

Hi, Sachin,

Thank you for the code snippet.

The Field's component prop expects either a string for built-in components or a single function for composite components.

I am guessing that what you are looking for is rendering multiple components in the Form Field. Is my assumption correct? If this is the case, you can return the components that you want in the function that is passed to the component prop:

For more information about rendering custom components, you can refer to this article:

I hope this matches what you need, but please let us know if you have any further questions.

Regards,
Wissam
Progress Telerik

No answers yet. Maybe you can help?

Tags
DropDownList Input
Asked by
Sachin
Top achievements
Rank 1
Iron
Iron
Share this question
or