0.1.22 • Published 3 years ago

@ammar.khalid/dialog-box v0.1.22

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

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.15

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago