项目作者: rohit-chouhan

项目描述 :
Pure Bootstrap 4 based JS alert
高级语言: JavaScript
项目地址: git://github.com/rohit-chouhan/bootalert.git
创建时间: 2020-09-05T13:16:17Z
项目社区:https://github.com/rohit-chouhan/bootalert

开源协议:MIT License

下载


Bootalert

A complete pure Bootstrap based alert for Javascript.
PHP

Installation

CDN

bootalert.min.js

  1. https://cdn.jsdelivr.net/npm/@rohit-chouhan/bootalert/bootalert.min.js

bootalert.js

  1. https://cdn.jsdelivr.net/npm/@rohit-chouhan/bootalert/bootalert.js

with NPM

  1. $ npm install @rohit-chouhan/bootalert

Documentation

Method Use
bootalert(‘Hello World’) Header Text in Alert
bootalert(‘Hello World’,’I am Bootalert’) Header, Message in Alert
bootalert(‘Hello World’,’I am Bootalert’,’primary’) Header Text, Message, button theme in Alert
bootalert(‘Hello World’,’I am Bootalert’,’primary’,’Ok’) Header Text, Message, button theme, Button Name in Alert
bootprompt(‘Enter Name’,’primary’,’Get Name’) Get InputHeader Text, button theme, Button Name in Alert

Get value from bootprompt

There is predefine function to exicute your code and get value.

  1. function bootrun(){
  2. console.log(window.bootval);
  3. }
  4. //complete example
  5. bootprompt('Enter Email');
  6. function bootrun(){
  7. console.log('Your Email is '+ window.bootval);
  8. }

License

MIT License

Developers

This framework is developed by Rohit Chouhan, Rohit Chouhan is the co-founder and CEO of Codesler, a company that’s offering digital marketing services and an accomplished web developer.

forthebadge made-with-python\
GithHub
Facebook
Twitter
Instagram
Website
GitHub license
GitHub license
GitHub version