-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom the input field only instead of whole body of insert modal #1031
Comments
@sunnyownage, if you want to have more ability to custom the field, I suggest you to use Please let me know if you got any trouble on implement |
I did not realize you had refs to all these elements. I solved this by adding the following line to componentDidMount (after searching the ref through console and inspect tool): this.refs.managetable.refs.toolbar.refs.form[1].type = "password"; |
My references is for |
Hi Allen, Upon upgrading to v3.0.0, I can no longer use my original method It seems that you have removed this ref. Is there an alternative way to customize the type of a particular form field without changing anything else? I like the style of the default insert modal and don't wish to customize it any other way. Thanks!! |
hi @sunnyownage, for customization, you are supposed to be used custom API to custom the content of insert model, use |
HI @sunnyownage, now we can support the custom only for input field, check this example to learn how to custom it, let me know if you have any questions, thanks 👍 Remember to upgrade to |
Hi Allen,
Really appreciate the work you've done here. For the Add Item Modal body, is it possible to customize one particular form field? In my case, I want to change the type of the form field from type="text" to type="password", and I can't reference the HTML element since there's no ID. Thanks in advance!
The text was updated successfully, but these errors were encountered: