0.1.22 • Published 4 years ago

@ammar.khalid/dialog-box v0.1.22

Weekly downloads
114
License
MIT
Repository
github
Last release
4 years ago

Dialog Box for Admin

This project is created to automate dialog box creation in projects. It uses reactstrap modal for creating the dialog box.

Installation

npm i @ammar.khalid/dialog-box

Usage

    <DialogBox
      dialogBoxHeader="Header"
      dialogBoxBody="Body"
      dialogBox=true
      loadingAction=true
      confirmationClick={() => this.someFunction()}
      rejectionClick={() => this.anotherFunction()}
      toggleClose={() => this.toggle()}
   />

Properties

   dialogBox: PropTypes.bool.isRequired,
   loadingAction: PropTypes.bool.isRequired,
   dialogBoxHeader: PropTypes.string.isRequired,
   dialogBoxBody: PropTypes.string.isRequired,
   confirmationClick: PropTypes.func,
   rejectionClick: PropTypes.func,
   toggleClose: PropTypes.func

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

0.1.20

4 years ago

0.1.21

4 years ago

0.1.22

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.15

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago