Socket
Socket
Sign inDemoInstall

bootstrap-auto-dismiss-alert

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bootstrap-auto-dismiss-alert

Simple plugin to auto dismiss/close Bootstrap 3.x alerts


Version published
Weekly downloads
49
increased by2.08%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Bootstrap auto dismiss alerts

Simple plugin to auto dismiss/close Bootstrap 3.x alert

Usage

Add data-auto-dismiss attribute to alert component.

<div class="alert alert-warning alert-dismissible" data-auto-dismiss role="alert">
  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  <strong>Warning!</strong> Better check yourself, you're not looking too good.
</div>

Set custom timeout

By default timeout is 5000ms, it can be overridden.

<div class="alert alert-success" role="alert" data-auto-dismiss="2000">
  Example
</div>

Events

Bootstrap events are triggered since Bootstrap dismiss alert functionality is used. Bootstrap Alerts Javascript Documentation

Keywords

FAQs

Last updated on 21 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc