Knockstrap screenshot

Knockstrap

Author Avatar Theme by Faulknercs
Updated: 12 Dec 2020
142 Stars

Knockout bindings to twitter bootstrap 3

Overview

Knockstrap is a binding library for Knockout.js that provides bindings to Twitter Bootstrap 3 widgets. It supports a variety of widgets such as modals, tooltips, alerts, carousels, and more. Knockstrap does not plan to update for Bootstrap 4, as it will continue to work only with Bootstrap 3.

Features

  • Supported Widgets: Modal, Tooltip, Popover, Alert, Progress, Toggle button, Radio button, Checkbox button, Carousel, Pagination, Pager.
  • Dependencies: Requires jQuery, Twitter Bootstrap 3 (CSS and JavaScript), and Knockout.js (version 2.3.0 or higher).
  • Packages: Available on NuGet, Bower, npm, CDNjs, and Delivr.

Installation

To build Knockstrap using grunt, follow these steps:

  1. Install node.js and grunt plugin.
  2. Install all grunt plugins.
npm install
  1. Build the project.
grunt build

For custom build and temp directories:

grunt build:custom

To build examples:

grunt build:examples

For custom examples directory:

grunt build:examples --dir=custom_directory

To run unit-tests:

grunt test

For building, tests, and minification:

grunt

Summary

Knockstrap is a binding library for Knockout.js that provides bindings to various Twitter Bootstrap 3 widgets. While it does not support Bootstrap 4 compatibility, Knockstrap remains a useful tool for integrating Bootstrap widgets with Knockout.js applications. Users can install Knockstrap using Node.js and grunt plugins, and the library is available on various package managers for easy access.