@sohamerp/confirmation-box
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

SOHAM CONFIRMATION BOX

Click here for Demo.

This library required @angular/core@18 @angular/cli@18 or Upper version.

Box Type

  1. OK
  2. YES / NO
  3. REMARKS
  4. DELETE / OBSOLETE
  5. OBSOLETE / UNOBSOLETE

OK BOX

  • It always return true Resonse.
    1. HeaderText - Text for Confirmation Box.
    2. BodyText - Text will dispaly on box. You can use HTML tags to Make it more attractive.
    3. BtnName - Text for OK Button. (by default: OK)
    4. btnOKIcon - Icon for OK Button. (by default: fa-check)
    5. BoxSize - It must be sm | lg | md. (by default: lg)
    6. HeaderBGColor - Background for header of Confirmation Box. (by default: royalblue)

YES / NO BOX

  • It will return true or false Resonse.
    1. HeaderText - Text for Confirmation Box.
    2. BodyText - Text will dispaly on box. You can use HTML tags to Make it more attractive.
    3. YesBtnName - Text for Yes Button. (by default: YES)
    4. NoBtnName - Text for No Button. (by default: NO)
    5. btnYesIcon - Icon for Yes Button. (by default: fa-check)
    6. btnNoIcon - Icon for No Button. (by default: fa-times)
    7. BoxSize - It must be sm | lg | md. (by default: lg)
    8. HeaderBGColor - Background for header of Confirmation Box. (by default: royalblue)
  • YES Button will always return true.
  • NO Button will always return false.

REMARKS BOX

  • It will return Remarks or false Resonse.
    1. HeaderText - Text for Confirmation Box.
    2. RemarksText - Text will dispaly in Remarks Field. You can also keep it blank.
    3. RemarkCompulsory - Is Remarks Compulsory?. (by default: true)
    4. SubmitBtnName - Text for Submit Button. (by default: SAVE)
    5. CancelBtnName - Text for Cancel Button. (by default: CANCEL)
    6. btnSaveIcon - Icon for Yes Button. (by default: fa-save)
    7. btnCancelIcon - Icon for No Button. (by default: fa-times)
    8. BoxSize - It must be sm | lg | md. (by default: lg)
    9. HeaderBGColor - Background for header of Confirmation Box. (by default: royalblue)
  • SAVE Button will always return Remarks written in Remarks Field.
  • CANCEL Button will always return false.

DELETE / OBSOLETE

  • It will return delete or obsolete or false Resonse.
    1. HeaderText - Text for Confirmation Box.
    2. BodyText - Text will dispaly on box. You can use HTML tags to Make it more attractive.
    3. ObsoleteFlag - Pass delete for DELETE / OBSOLETE Box. (by default: obsolete)
    4. SubmitBtnName - Text for Submit Button. (by default: SAVE)
    5. CancelBtnName - Text for Cancel Button. (by default: CANCEL)
    6. btnSaveIcon - Icon for Yes Button. (by default: fa-check)
    7. btnCancelIcon - Icon for Cancel Button. (by default: fa-times)
    8. BoxSize - It must be sm | lg | md. (by default: lg)
    9. HeaderBGColor - Background for header of Confirmation Box. (by default: royalblue)
  • YES Button will always return delete.
  • SUBMIT Button will always return obsolete.
  • CANCEL Button will always return false.

OBSOLETE / UNOBSOLETE

  • It will return obsolete or unobsolete or false Resonse.
    1. HeaderText - Text for Confirmation Box.
    2. BodyText - Text will dispaly on box. You can use HTML tags to Make it more attractive.
    3. ObsoleteFlag - Pass obsolete for OBSOLETE /UNOBSOLETE Box. (by default: obsolete)
    4. SubmitBtnName - Text for Submit Button. (by default: SAVE)
    5. CancelBtnName - Text for Cancel Button. (by default: CANCEL)
    6. btnSaveIcon - Icon for Yes Button. (by default: fa-check)
    7. btnCancelIcon - Icon for Cancel Button. (by default: fa-times)
    8. BoxSize - It must be sm | lg | md. (by default: lg)
    9. HeaderBGColor - Background for header of Confirmation Box. (by default: royalblue)
  • SUBMIT Button will return obsolete if Obsolete Box is Checked else it will return unobsolete.
  • CANCEL Button will always return false.

Package Sidebar

Install

npm i @sohamerp/confirmation-box

Weekly Downloads

6

Version

1.0.2

License

none

Unpacked Size

103 kB

Total Files

14

Last publish

Collaborators

  • krutpandya