Giter VIP home page Giter VIP logo

bootstrap-alert-helper's Introduction

bootstrap-alert-helper : A simple bootstrap alert helper.

###Philosophy This pluging works as a helper to simplify showing new alerts dynamically from js code in twitter bootstrap. ###Dependencies This plugin replies on the following tools:

  • Twitter Bootstrap 3.0.2
  • jQuery v1.10.2
  • Font Awesome 4.0.3

The technologies listed above doesn't necessarily indicate that they cannot run on older tools. I still didn't check what is the minimum versions to start using the plugin. If you tested and would like to contribute, please fork the project and create a merge request or simply add a new task.

###How to To start using the pluging include the js file after you setup Bootstrap as shown in the following:

<script type="text/javascript" src="js/bootstrap-alert-quick.js"></script>

Then add a container, it might be like that:

<div class="bootstrap-alert-placeholder"></div>

Later add a an alert as follows:

    $(".bootstrap-alert-placeholder").bootstrapAlert({content: "Bravo! your alert is simply added"});

###Options Like any other jQuery plugin, this plugin ex extendable with options. The options are:

  • content(string): This is your message content, the content can be either Text, Html, DOM Object or jQuery Object
  • type(string): This is the type of the alert, possiblities are:
    • success to create a green success message
    • warning to show an orange warning message
    • danger to show a red alert message
    • info to show an info blue message
  • showIcon(bool): true or false to whether show an icon on the left of the message
  • icon(string): this is a fontawesome icon class without fa fa-. ex: exclamation, exclamation-circle
  • showCloseButton(bool): true or false to whether show the close button

###The End This is it for now. I will regularly update the plugin for more features if I need them. Please feel free to fork the plugin and create merge requests if you updated it.

bootstrap-alert-helper's People

Contributors

accellware avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.