1.0.16 • Published 8 years ago

emptyform v1.0.16

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

EmptyForm

ReactJS Form.

NPM

It creates a generic wrapper for the form. So you need to add the content of the inside form, from another React Component.

EmptyForm will create the shell. Take a look at ExampleForm to create your own form. Take a look too, on how to call the content for the shell:

The submit method, will be on the wrapper, for the Empty Form, so you can hit a service or do whatever you need.

Params:

  • {String} formClass The desired class for the form
  • {Object} A class of ReactJS containing the elements that will be inside the form.
  • {Function} submitAction The method to call as a callback, when Submit button is pressed.
  • {Function} invalidFormAction When form is invalid, will call this action. Usefull to deactivate a submit button, for example.
  • {Function} validFormAction When form is valid, will call this action. Usefull to activate a submit button, for example.

To start the example:

  • enter to Example folder.
  • npm install
  • npm start, will start a server, after build the files.
1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago