aurelia-bootstrap-tagsinput
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -109,3 +109,3 @@ define(['exports', 'aurelia-framework', 'jquery', './picker-global-options', 'bootstrap-tagsinput/dist/bootstrap-tagsinput'], function (exports, _aureliaFramework, _jquery, _pickerGlobalOptions) { | ||
var pickerOptions = this.options || {}; | ||
if (!this.options.tagClass) { | ||
if (!pickerOptions.tagClass) { | ||
pickerOptions.tagClass = this.bootstrapVersion === 3 ? 'label label-info' : 'badge badge-info'; | ||
@@ -122,3 +122,3 @@ } | ||
events: this.events, | ||
options: this.options, | ||
options: pickerOptions, | ||
methods: this.methods | ||
@@ -125,0 +125,0 @@ }; |
@@ -108,3 +108,3 @@ 'use strict'; | ||
var pickerOptions = this.options || {}; | ||
if (!this.options.tagClass) { | ||
if (!pickerOptions.tagClass) { | ||
pickerOptions.tagClass = this.bootstrapVersion === 3 ? 'label label-info' : 'badge badge-info'; | ||
@@ -121,3 +121,3 @@ } | ||
events: this.events, | ||
options: this.options, | ||
options: pickerOptions, | ||
methods: this.methods | ||
@@ -124,0 +124,0 @@ }; |
@@ -87,3 +87,3 @@ var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10; | ||
let pickerOptions = this.options || {}; | ||
if (!this.options.tagClass) { | ||
if (!pickerOptions.tagClass) { | ||
pickerOptions.tagClass = this.bootstrapVersion === 3 ? 'label label-info' : 'badge badge-info'; | ||
@@ -100,3 +100,3 @@ } | ||
events: this.events, | ||
options: this.options, | ||
options: pickerOptions, | ||
methods: this.methods | ||
@@ -103,0 +103,0 @@ }; |
@@ -111,3 +111,3 @@ 'use strict'; | ||
var pickerOptions = this.options || {}; | ||
if (!this.options.tagClass) { | ||
if (!pickerOptions.tagClass) { | ||
pickerOptions.tagClass = this.bootstrapVersion === 3 ? 'label label-info' : 'badge badge-info'; | ||
@@ -124,3 +124,3 @@ } | ||
events: this.events, | ||
options: this.options, | ||
options: pickerOptions, | ||
methods: this.methods | ||
@@ -127,0 +127,0 @@ }; |
{ | ||
"name": "aurelia-bootstrap-tagsinput", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "An Aurelia Custom Element for the 3rd party addon [Bootstrap Tags Input]", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -21,3 +21,3 @@ # Aurelia-Bootstrap-Tagsinput | ||
**NOTE:** | ||
**NOTE:** | ||
The picker options can also be defined globally through `main.js` via a `config.options` configuration, see [Global Options](#globaloption) | ||
@@ -50,5 +50,5 @@ | ||
### Available Methods/Functions | ||
Again every single methods which comes with `Bootstrap Tags Input` are available. For the complete list, please visit the official site [Bootstrap Tags Input - Functions](http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/#methods). | ||
Again every single methods which comes with `Bootstrap Tags Input` are available. For the complete list, please visit the official site [Bootstrap Tags Input - Functions](http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/#methods). | ||
To have access to the methods/functions, you will need to expose the element itself through `element.bind` to expose the methods _(also note that doing so will also give you access to `events`, `options` and `methods`)_. | ||
To have access to the methods/functions, you will need to expose the element itself through `element.bind` to expose the methods _(also note that doing so will also give you access to `events`, `options` and `methods`)_. | ||
@@ -78,5 +78,5 @@ Example | ||
### Available Events | ||
Every events of `Bootstrap Tags Input` are, as no surprises, available as well. For the complete list, please visit the official site [Bootstrap Tags Input - Events](http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/#events). | ||
Every events of `Bootstrap Tags Input` are, as no surprises, available as well. For the complete list, please visit the official site [Bootstrap Tags Input - Events](http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/#events). | ||
To have access to the `events`, you will need to expose the element itself through `element.bind` to expose the methods _(also note that doing so will also give you access to `events`, `options` and `methods`)_. | ||
To have access to the `events`, you will need to expose the element itself through `element.bind` to expose the methods _(also note that doing so will also give you access to `events`, `options` and `methods`)_. | ||
@@ -178,2 +178,10 @@ **Note** | ||
**Note on `aurelia-webpack-plugin 2.0`** | ||
If you started using the new `aurelia-webpack-plugin` version `2.0`, which is currently in [RC Pre-Release](https://github.com/aurelia/webpack-plugin/releases) and is already packaged in some of the [Aurelia Skeletons](https://github.com/aurelia/skeleton-navigation) (not all). You will have to use the `PLATFORM.ModuleName` wrapper. The previous code becomes: | ||
```javascript | ||
aurelia.use.plugin(PLATFORM.moduleName('aurelia-bootstrap-tagsinput')); | ||
``` | ||
<a name="globaloption"></a> | ||
@@ -201,2 +209,18 @@ | ||
or with `aurelia-webpack-plugin 2.0` : | ||
```javascript | ||
export function configure(aurelia) { | ||
aurelia.use.standardConfiguration().developmentLogging(); | ||
aurelia.use.plugin(PLATFORM.moduleName('aurelia-bootstrap-tagsinput'), config => { | ||
// extra attributes, with config.extra | ||
config.extra.bootstrapVersion = 4; | ||
// or any picker options, with config.options | ||
config.options.tagConfirmKeys = [13, 44] | ||
}); | ||
aurelia.start().then(() => aurelia.setRoot(PLATFORM.moduleName('app'))); | ||
} | ||
``` | ||
## License | ||
@@ -208,3 +232,3 @@ [MIT License](https://github.com/ghiscoding/Aurelia-Bootstrap-Plugins/blob/master/LICENSE) | ||
## Use it, like it? | ||
## Use it, like it? | ||
You like and use an `Aurelia-Bootstrap-Plugins`, please click on the :star: and spread the word. |
@@ -45,3 +45,3 @@ import {inject, bindable, bindingMode, DOM} from 'aurelia-framework'; | ||
let pickerOptions = this.options || {}; | ||
if (!this.options.tagClass) { | ||
if (!pickerOptions.tagClass) { | ||
pickerOptions.tagClass = this.bootstrapVersion === 3 ? 'label label-info' : 'badge badge-info'; | ||
@@ -62,3 +62,3 @@ } | ||
events: this.events, | ||
options: this.options, | ||
options: pickerOptions, | ||
methods: this.methods | ||
@@ -65,0 +65,0 @@ }; |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
277646
228
48
1693