1.0.16 • Published 9 years ago

emptyform v1.0.16

Weekly downloads
2
License
MIT
Repository
github
Last release
9 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

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago