Skip to content

Releases: Panman82/ember-bootstrap-switch

Version 1.13.4

30 Jan 20:48
Compare
Choose a tag to compare

Sad day, deprecating the addon due to inactive development of bootstrap-switch. I would not recommend using it in new projects.

Version 1.13.3

08 Jul 17:11
Compare
Choose a tag to compare

Minor update to remove the didInitAttrs deprecation warning #14

Version 1.13.2

02 Mar 20:37
Compare
Choose a tag to compare

Another minor release;

  • Updated .npmignore
  • Updated the LICENSE.md year
  • Clarified 2.x compatibility

Version 1.13.1

02 Feb 18:00
Compare
Choose a tag to compare

This is a minor release with only a few improvements;

  • Moved from lifecycle events to the actual hooks, which are slightly more performant. Ex: from Ember.on('didInitAttrs', function(){}) to didInitAttrs(){}
  • Support for Ember SafeString's used as labels, strings options now call .toString() before making it to bootstrap-switch. Useful for internationalization addons.
  • Many fixes to the README

Glimmer me now!

20 Nov 16:32
Compare
Choose a tag to compare

This is a major update that includes a complete rewrite of the Ember component and supports/requires Ember 1.13+ (including 2.x).

New Features

  • Uses the new attribute hooks instead of property observers
  • Uses the new render hooks to help enable Fastboot support (untested)
  • Options are now passed in as an option hash on switch initialization, instead of being set as DOM data attributes
  • bootstrap-switch events are now handled by a callback function, rather than attaching a DOM listener
  • Switch initialization state is now handled properly, fixes #4
  • Better handling for Promises passed in as checked
  • New on-switch-active action handler, useful when used as radios
  • bootstrap-switch methods are now exposed as component actions

Bug Fixes

  • #4 Cannot read property 'bootstrapSwitch' of undefined
  • #7 Fix Indeterminate computed property

Breaking Changes

  • Since the internals of the Ember component have changed dramatically, if you .extend()'ed the component for customization, that likely broke
  • The on-switch-change action handler function signature changed, the state argument was moved to the first position (to enable usage with the mut helper)
  • Since all options are now handled by the attribute hooks, you cannot .set() an option directly on the component from an action handler (please start a new Issue if you need this functionality)
  • Removed checked-default attribute, the component will now smartly set the defaultChecked DOM element property (please start a new Issue if you need this functionality)

Options

22 May 21:50
Compare
Choose a tag to compare

This release adds configuration options for the addon;

  • bootstrapVersion to select which version of bootstrap is being used (2 or 3), since bootstrap-switch provides for both. Defaults to 3
  • excludeCSS to do exactly that. Mainly useful for Less, where the default CSS is not needed
  • excludeJS to do exactly that. Should not use this option unless you've converted the bootstrap-switch JavaScript into a "native" Ember Component

The next update will include better support for Less (if possible) before a 1.0.0 release!

Install Fix

22 Jan 20:50
Compare
Choose a tag to compare

Fixed an issue in the blueprint that was causing an ember install:addon ember-bootstrap-switch issue.

Initial Release

22 Jan 17:54
Compare
Choose a tag to compare
v0.1.0

Initial commit of bootstrap-switch code