[英]How do I add a button that when clicked converts all my text field editable in react?
Here is an example of what I am trying to do:这是我正在尝试做的一个例子:
enter image description here The basic idea is as soon as I click the edit button all the text field turn into a input box when you can change the text and click enter to save.在此处输入图像描述基本的想法是,当我单击编辑按钮时,所有文本字段都会变成一个输入框,此时您可以更改文本并单击 Enter 保存。
您可以使用input
元素并在单击按钮时切换disabled
属性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.