Sha256: 1201beb453543f185ff8f063c56583fdcefab7ea2d74eee1095e18f8f6856a29

Contents?: true

Size: 465 Bytes

Versions: 3

Compression:

Stored size: 465 Bytes

Contents

Vue.component('select-picker', {
  template: '<select class="" >' +
    '<option  v-for="option in selectOptions">{{ option }}</option>' +
    '</select>',
  mounted: function() {
    var vm = this;
    $(this.$el).selectpicker(this.selectPickerTexts);
    // .trigger('change')
    // // emit event on change.
    // .on('change', function() {
    //   vm.$emit('input', this.value)
    // });
  },
  props: ['selectOptions', 'selectPickerTexts', 'selected'],
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pwb-1.4.0 app/assets/javascripts/pwb/shared/select-picker.js
pwb-1.3.0 app/assets/javascripts/pwb/shared/select-picker.js
pwb-1.2.0 app/assets/javascripts/pwb/shared/select-picker.js