applove
v1.1.1
Published
Hi there! π Welcome to my project, developed with the primary goal of learning and enhancing my skills. I didn't set any specific expectations for this project other than personal growth and skill improvement.
Downloads
4
Readme
Project Overview
Hi there! π Welcome to my project, developed with the primary goal of learning and enhancing my skills. I didn't set any specific expectations for this project other than personal growth and skill improvement.
Available Scripts
In the project directory, you can run to install:
npm i applove
Here is example useage applove, for confirm dialog
Screenshots
import applove from 'applove'
applove.confirm({
title: "Please confirm",
confirmButtonLabel: "Confirm",
cancelButtonLabel: "Cancel",
type: "question"
}).then(response => {
if (response.result) {
// User clicked "Yes"
console.log("Confirmed");
} else {
// User clicked "No" or closed the dialog
console.log("Canceled");
}
});
Here is example useage applove, for alert success, error or something like that.
Screenshots
applove.success({
title: "Operation successful",
exitButtonLabel: "Close"
});
applove.error({
title: "Error occurred",
exitButtonLabel: "Close"
});
applove.warning({
title: "Warning",
exitButtonLabel: "Close"
});
applove.info({
title: "Information",
exitButtonLabel: "Close"
});