An open API service indexing awesome lists of open source software.

https://github.com/logesh4lg/lg-custom-alert

Custom alert on clicking using Boostarap 3 and Angular 1.6
https://github.com/logesh4lg/lg-custom-alert

alertmanager angularjs bootstrap-alert bootstrap3 javascript

Last synced: about 2 months ago
JSON representation

Custom alert on clicking using Boostarap 3 and Angular 1.6

Awesome Lists containing this project

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






```

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

```html

```

# 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

Click for Alert

```
#### Refer test/test.HTML