# lg-custom-alert

> Custom alert on clicking using Boostarap 3 and Angular 1.6

Latest version **1.0.1** (published 2018-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install lg-custom-alert
pnpm add lg-custom-alert
yarn add lg-custom-alert
bun add lg-custom-alert
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-03-29 |
| First published | 2018-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | logesh |
| Maintainers | swt.logesh |
| Keywords | angularjs, angular, boostarap, alerts, bootstrap-alert |

## Links

- npm: https://www.npmjs.com/package/lg-custom-alert
- Repository: https://github.com/logesh4cspl/lg-custom-alert
- Homepage: https://github.com/logesh4cspl/lg-custom-alert#readme
- Issues: https://github.com/logesh4cspl/lg-custom-alert/issues
- npm.io page: https://npm.io/package/lg-custom-alert

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-03-29
- 1.0.0 — 2018-03-29

## README

# lg-alert

Custom alert using Boostarap 3 and Angular 1.6

# Features

- Make all size popups and alerts using various options

# Installation

1. Use npm to install the new module:

    ```bash
    npm install lg-custom-alert --save
    ```
2. Import the dependency

    1. Bootstrap - CSS is enough
    2. Angular
    3. ui.bootstrap

    ```html
    <!-- Optional -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap.min.js" charset="utf-8"></script>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" charset="utf-8"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js" charset="utf-8"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js"></script>
    ```


3. Import `lg.customAlert.min.js` javascript and css file into your HTML file

    ```html
    <script src="dist/lg.customAlert.min.js"></script>
    ```

# Usage

  1. Add `lg.customAlert` as a dependency on your Angular app:

      ```javascript
      angular.module("myApp", ["lg.customAlert", "ui.bootstrap"]);
      ```

  2. Put `lg-alert` directive along with button elements
      `lg-alert`    - the scope function to be called after alert success
      `lg-message`  - Message to be displayed in the modal
      `lg-size`     - Size to be displayed in the modal `['lg', 'md', 'sm']`
      `lg-type`     - Type of the modal to be displayed in the modal `['confirm', 'proceed', 'ok', 'delete']`

      #### Example
      ```html
      <button class="btn btn-primary"
                    lg-alert="just_log()"
                    lg-message="Please confirm to log the message"
                    lg-size="lg"
                    lg-type="confirm">
           Click for Alert
      </button>
      ```
      #### Refer src/test.HTML

---
_Source: https://npm.io/package/lg-custom-alert · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
