Sha256: 7ea0d928659d0af7febc396c2c15a89aa866af16ef99ce6f76b408972a7909f3
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
import Ember from 'ember'; import layout from '../templates/components/bsy-input'; const { Component, computed } = Ember; const BsyInputComponent = Component.extend({ layout, tagName: "div", classNames: "form-group", type: "text", classNameBindings: ["value:filled", "icon:has-icon"], size: null, // sm, lg inputClassNames: computed('size', function () { const size = this.get('size'); if (size) { return `form-control input-${size}`; } return "form-control"; }), iconSize: computed('size', function () { const size = this.get('size'); if (size) { return `icon--${size}`; } }) }); BsyInputComponent.reopenClass({ positionalParams: ['value'] }); export default BsyInputComponent;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-bookingsync-sass-1.0.5 | addon/components/bsy-input.js |