Sha256: b27f52296d9f313bd10c1c34cb331bbc75c4482c93ee64800664241d24465f5e

Contents?: true

Size: 429 Bytes

Versions: 7

Compression:

Stored size: 429 Bytes

Contents

import Ember from 'ember';
const { computed } = Ember;
import layout from '../../templates/components/bsy-nav/item';

export default Ember.Component.extend({
  layout,
  tagName: 'li',
  classNames: 'nav-item',
  classNameBindings: ["activeClassName"],
  active: false,

  activeClassName: computed('active', function() {
    if (this.get('active') === true) {
      return "active";
    } else {
      return "";
    }
  })
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap-bookingsync-sass-1.0.5 addon/components/bsy-nav/item.js
bootstrap-bookingsync-sass-1.0.4 addon/components/bsy-nav/item.js
bootstrap-bookingsync-sass-1.0.3 addon/components/bsy-nav/item.js
bootstrap-bookingsync-sass-1.0.2 addon/components/bsy-nav/item.js
bootstrap-bookingsync-sass-1.0.1 addon/components/bsy-nav/item.js
bootstrap-bookingsync-sass-1.0.0 addon/components/bsy-nav/item.js
bootstrap-bookingsync-sass-1.0.0.beta12 addon/components/bsy-nav/item.js