I have an antd form with multiple form items and try to find a way to mark the complete form as readonly. I could for sure set each input component to 'disabled' but I wonder if there is a convenient way to do so on the form via an API call that I do not know yet.
Linked Questions
- React API Context Router
- Highlight item onClick - React.js
- React Bootstrap select
- setState delay in react
- React setup startup page
- setState is not defined
- Set state from query params
- HOC for JSX element
- One step delay while using ShouldComponentUpdate()
- Call caretRender on page load (React-Bootstrap-Table)
- Confused by how to pass correctly props to descendant components
- this.state react
- How do I hide the codes that appear in the sourcemap in the react application?
- How to click an image and reload the current page in Reactjs?
- When can I consider my use of dangerouslySetInnerHTML() safe?
Popular Questions
- Partially applied generic function "cannot be cast to Nothing"
- Peek and Pop not an option
- Run JIRA in port 80 as root
- Agar.io style ripple effect for canvas arcs
- What is the difference between [ValidateModel] and a check of valid state in ASP.NET?
- Passing shared_ptr to std::function (member function)
- UWP location tracking even when the app was suspended
- Docker – fix service IP addresses
- Dynamic partition in hive
- How to enable Indications on Client Configuration descriptor from iOS8
1 Answers
Related Questions
- Nested array parsing
- How to add Custom validators through a json object with react forms
- How do I make my web app's main page look different depending on whether the user signed in
- How to pass an array from an api as props to another component
- Is it a bad idea to use for loop/non ES6 for React
- How to add transitions in react
- Hello, how can I display a real time clock in React?
- React can't replace server-side rendered node in browser callback
- Pass State from component to parent
- how to implement website navigation with reactjs
- componentWillMount warning on function that setState
- setState in Const Props ReactJS
- Are React site animations/interactions smoother than a typical html website with jquery/javascript?
- applying css using class name or ID attribute of html element in reactjs component
- Adding Switch to React Router
I don't see such an option in the form api, and I think it's the rare use case, so I doubt it exists. However, you can simply add variable which will track the
disabled
status, i.e.:Hope it helps.