1.0.0 • Published 5 years ago
alertrict v1.0.0
Alertrict
A small javascript package for creating beautiful alert (IOS style)
Installation
install using npm:
npm install alertrictImport
using npm:
import alertrict from "alertrict";or
<link rel="stylesheet" href="dist/css/alertrict.min.css" />
<script src="dist/js/alertrict.min.js"></script>Usage
alertrict(options);Options
options are object
| key | type | default |
|---|---|---|
| title | string | |
| text | string | |
| confirmText | string | Continue |
| showCancel | boolean | FALSE |
| cancelText | string | Cancel |
| animation | boolean | TRUE |
| destructive | boolean | FALSE |
Example
alertrict({
title: "Alert!",
text: "Are you sure you want to quit?",
showCancel: true,
}).then((result){
if(result.isConfirmed){
// doing something
}
});Documentation
1.0.0
5 years ago