Socket
Socket
Sign inDemoInstall

bootstrap-canjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-canjs

CanJS component wrapper around Tw Bootstrap JS components


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

bootstrap-canjs

Build Status

CanJS component wrapper around Tw Bootstrap JS components

Usage

Component use

You can import individual components. E.g. to use Bootstrap's modal do:

<can-import from="bootstrap/dist/css/bootstrap.css" />
<can-import from="bootstrap-canjs/src/modal/" />

<!-- Place `bootstrap-modal` in a top-level position in your document. -->
<bootstrap-modal></bootstrap-modal>

<!-- Use `bootstrap-modal-content` whenever you want in your app. -->
<!-- Once its rendered it will be shown within bootstrap-modal. -->
<button ($click)="openMyModal()">Open my modal</button>
{{#if isOpened}}
  <bootstrap-modal-content>
    <div class="modal-header">
      <button ($click)="close()">close</button>
      <h4 class="modal-title">Modal title</h4>
    </div>
    <div class="modal-body">
      <p>One fine body</p>
    </div>
  </bootstrap-modal-content>
{{/if}}

CommonJS use

Use require to load bootstrap-canjs and everything else needed to create a template that uses bootstrap-canjs:

var plugin = require("bootstrap-canjs");

Standalone use

Load the global version of the plugin:

<script src='./node_modules/bootstrap-canjs/dist/global/bootstrap-canjs.js'></script>

Release Notes

  • v0.0.1:
    • Added bootstrap-modal and bootstrap-modal-content components.

Keywords

FAQs

Package last updated on 28 Apr 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc