This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

alertrict

1.0.0 • Public • Published

Alertrict

A small javascript package for creating beautiful alert (IOS style)

Installation

install using npm:

npm install alertrict

Import

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

rifkiard.github.io/alertrict

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i alertrict

      Weekly Downloads

      2

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      17.4 kB

      Total Files

      10

      Last publish

      Collaborators

      • rifkiard