Releases: Panman82/ember-bootstrap-switch
Releases · Panman82/ember-bootstrap-switch
Version 1.13.4
Version 1.13.3
Minor update to remove the didInitAttrs deprecation warning #14
Version 1.13.2
Another minor release;
- Updated .npmignore
- Updated the LICENSE.md year
- Clarified 2.x compatibility
Version 1.13.1
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(){})
todidInitAttrs(){}
- 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!
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
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, thestate
argument was moved to the first position (to enable usage with themut
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 thedefaultChecked
DOM element property (please start a new Issue if you need this functionality)
Options
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 3excludeCSS
to do exactly that. Mainly useful for Less, where the default CSS is not neededexcludeJS
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
Fixed an issue in the blueprint that was causing an ember install:addon ember-bootstrap-switch
issue.
Initial Release
v0.1.0 Initial commit of bootstrap-switch code