# bootstrap-switch **Repository Path**: bankflag_ltd0306/bootstrap-switch ## Basic Information - **Project Name**: bootstrap-switch - **Description**: Turn checkbox to Boostrap toggle button with iOS style. - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-20 - **Last Updated**: 2021-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![Screenshot](screenshot.png "bootstrap-switch.js") Very simple, fast and lightweight (> 2K) jquery plugin for bootstrap to render checkbox like iOS style switch button. ## Usage ```javascript $(SELECTOR).bootstrapSwitch({ on: 'On', // default 'On' off: 'Off', // default 'Off' onLabel: 'closed', //default '' offLabel: 'open', //default '' same: false, // default false. same text for on/off and onLabel/offLabel size: 'lg', // xs/sm/md/lg, default 'md' onClass: 'primary', //success/primary/danger/warning/default, default 'primary' offClass: 'default', //success/primary/danger/warning/default default 'default' }); ``` ## Install Copy the ```bootstrap-switch.js``` or use bower to install: ``` bower install bootstrapswitch ```