1.0.0 • Published 2 years ago

ng-feedbacky v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Feedbacky

Feedbacky for collecting visitor feedbacks across your e-commerce websites.

This library was generated with Angular CLI version 13.0.0.

Live Demo

Installation

npm install ng-feedbacky

Usage

  • import FeedbackModule from ng-feedbacky
import {FeedbackModule} from "ng-feedbacky";
  • add FeedbackModule to the imports of your NgModule:
@NgModule({
  imports: [
    ...,
  FeedbackModule
],
...
})
class YourModule {
...
}
  • add html selector to your component
<ng-feedbacky></ng-feedbacky>
  • create your custom props
customProps:FeedbackyProps = {
messageLength:'18',
title: 'This is Custom Title',
titleColor: '#FF9A44',
}
  • add your custom props
<ng-feedbacky [formProps]="customProps"></ng-feedbacky>

Available props

NameTypeDefaultDescription
backgroundColorstring#FFFFFFModal background color
messageLengthnumber2000Max length of form message
sendButtonColorstring#FF9A44Form submit button background color
sendButtonTextstringSendForm submit button text
sendButtonTextColorstring#FFFFFFForm submit button text color
successResponseColorstring#008000Success form request's response text color
successResponseTextstringWE HAVE GOT YOUR FEEDBACKSuccess form request's response text
titlestringSEND YOUR FEEDBACKModal form title
titleColorstring#000000Form title color

Example

FORM_PROPS: FeedbackyProps = {
    backgroundColor: '#FFFFFF',
    messageLength: 2000,
    sendButtonColor: '#FF9A44',
    sendButtonText: 'Send',
    sendButtonTextColor: '#FFFFFF',
    successResponseColor: '#008000',
    successResponseText: 'WE HAVE GOT YOUR FEEDBACK',
    title: 'SEND YOUR FEEDBACK',
    titleColor: '#000000',
  }

License

MIT

1.0.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago