Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Add Twitter Bootstrap javascript from CDN as a require.js module shim. With fallback to local version.

Notifications You must be signed in to change notification settings

weprovide/magento2-module-twitterbootstrap-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento2 Twitter Bootstrap Javascript

Add Twitter Bootstrap javascript from CDN as a require.js module shim. With fallback to local version when CDN is offline.

Installation

  1. composer require weprovide/magento2-module-twitterbootstrap-js
    will install the latest version. If you want a specific Twitter Bootstrap version you can use this:
    composer require timneutkens/magento2-module-twitterbootstrap-js:<version here>

  2. Run bin/magento setup:upgrade

  3. Run bin/magento setup:static-content:deploy

Available versions

  • 3.3.7

Usage

For usage examples see the Twitter Bootstrap website

require(['jquery', 'jquery.bootstrap'], function ($) {
  $('.element').carousel()
});

About

Add Twitter Bootstrap javascript from CDN as a require.js module shim. With fallback to local version.

Resources

Stars

Watchers

Forks

Packages

No packages published