6. JavaScript

Please refer to the Bootstrap JavaScript documentation for details about how to use the JavaScript components. Bootstrap UI components were written to be as compatible with Bootstrap 3 components as possible. Namely the following sections of Bootstrap docs apply:

QUnit Tests

Tests for all components are stored in `src/js/tests/` and can be run using either of the following commands:
  • `$ grunt test` for testing in a headless browser Phantom JS.
  • `$ grunt test-remote` for testing in a real browser. **Please append** `src/js/tests/` **to the URL** (typically `localhost:3000`) to view the QUnit test page. For testing on another device, replace `localhost` with your local IP address.