Skip to content

ruffcorn33/react-cancel-submit-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

react-cancel-submit-group

A React component with a Cancel and a Submit button.

react-cancel-submit-group takes in three possible parameters:

cancelMethod

submitMethod

disabled
If true, the Submit button will initially be disabled. Pass a state value that will be set to false when form data is validated.

Usage

Import react-cancel-submit-group
import CancelSubmitGroup from "../components/CancelSubmitGroup";

Example:

<div className="buttons-wrapper">
    <CancelSubmitGroup 
        cancelMethod={(e)=>{that.cancelEditAdd(e)}} 
        submitMethod={(e)=>{that.confirmEditAdd(e)}} 
        disabled={!that.state.newValues}
        language={that.props.language}
    />
</div>

About

A React component for an Add and a Submit button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published