Advertisement
Guest User

Untitled

a guest
Jun 14th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1.  
  2.  
  3. import FormBuilder from "wavesys_form_builder";
  4. const FormGeneratorProps = {
  5. download_path: "",
  6. back_action: "/",
  7. back_name: "Back",
  8. answer_data: {},
  9. action_name: "Save",
  10. form_action: "/",
  11. form_method: "POST",
  12. variables: {},
  13. }
  14. <FormBuilder.ReactFormGenerator
  15. {...FormGeneratorProps}
  16. data={this.state.data}//here i give the data
  17. read_only={this.state.modal[1] === 'ro'}//aqui metes a true
  18. hide_actions={this.state.modal[1] === 'ro'}
  19. display_short={this.state.modal[1] === 'short'}
  20. />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement