1.0.1 • Published 8 months ago

feedbacky-popup v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

FEEDBACKY-POPUP

Demo Link: Click Here

With this button, you will be able to learn the opinions of your users or customers.

You can easily integrate it into your website and start using it.

Used Technologies

  • React
  • TypeScript
  • Eslint
  • Axios
  • Webpack
  • Babel
  • Testing Library
  • Jest
  • Sweetalert

How To Use

Enter the following command in your console screen to add it to your existing React project:

npm install feedbacky-popup

You can then import, for example, into your App.js file as follows:

import { Feedbacky } from "feedbacky-popup";

React JSX example usage is as follows:

<Feedbacky sheetsId={yourSheetsId} />

Save Date Info

If you want to save the current date, set the sendDateInfo parameter to true.

Parameters

Feedbacky takes many parameters so you can easily integrate it into your own site. These are included in the table below:

Parameter NameTypeRequiredExample ValueDefault Value
sheetsIdstring
iconWidthstringX"30px""30px"
iconBottomstringX"35px""35px"
iconTopstringX"32px""32px"
iconRightstringX"35px""35px"
iconLeftstringX"32px""32px"
successModalTitleColorstringX"#50e150""#50e150"
modalButtonColorstringX"#50e150""gold"
modalButtonTextColorstringX"#50e150"#000000
customFeedbackyIconstringX"https://res.cloudinary.com/dfqecvogl/image/upload/v1694343282/uxz5cxeoj6potv7aahmm.png""https://res.cloudinary.com/dfqecvogl/image/upload/v1694343282/uxz5cxeoj6potv7aahmm.png"
successModalTitlestringX"WE HAVE GOT YOUR FEEDBACK""WE HAVE GOT YOUR FEEDBACK"
modalTitlestringX"SEND YOUR FEEDBACK""SEND YOUR FEEDBACK"
modalButtonTextstringX"SEND""SEND"
sendDateInfobooleanXfalsefalse
sheetsDateColumnNamestringX"Date""Date"
sheetsMessageColumnNamestringX"Message""Message"
errorModalTextstringX"Something went wrong. Please try again later.""Something went wrong. Please try again later."

SheetsId parameter

You must give the sheetsId parameter to Feedbacky. This application saves your users' feedback in your Google Sheets. For this, Feedbacky needs the Google document ID you created.

How Can I Save Data and Get Sheets ID?

example App Script

const sheets = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1-VfLt5S9aKPXQSOf7qtIjRoYDTqt6c3PYD4EpB9qML8/edit#gid=0");
 //if you have changed your sheet name then replace the below Sheet1 with your sheet name
const sheet = sheets.getSheetByName("Sayfa1");
function doPost(e){
  let data = e.parameter;
  sheet.appendRow([data.Date,data.Message]);
  return ContentService.createTextOutput("Your message was successfully sent to the Googlesheet database!");
}