How to use the ember-bootstrap/utils/cp/type-class function in ember-bootstrap

To help you get started, we’ve selected a few ember-bootstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kaliber5 / ember-bootstrap / addon / components / base / bs-navbar.js View on Github external
}

  /**
   * Property for type styling
   *
   * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/navbar/#color-schemes)
   *
   * @property type
   * @type String
   * @default 'default'
   * @public
   */
  @defaultValue
  type = 'default';

  @typeClass('navbar', 'type')
  typeClass;

  /**
   * The action to be sent when the navbar is about to be collapsed.
   *
   * You can return false to prevent collapsing the navbar automatically, and do that in your action by
   * setting `collapsed` to true.
   *
   * @event onCollapse
   * @public
   */
  onCollapse() {}

  /**
   * The action to be sent after the navbar has been collapsed (including the CSS transition).
   *
github kaliber5 / ember-bootstrap / addon / components / base / bs-alert.js View on Github external
*/
  fadeDuration = 150;

  /**
   * Property for type styling
   *
   * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/alerts/)
   *
   * @property type
   * @type String
   * @default 'default'
   * @public
   */
  type = 'default';

  @typeClass('alert', 'type')
  typeClass;

  /**
   * Use CSS transitions?
   *
   * @property usesTransition
   * @type boolean
   * @readonly
   * @private
   */
  @usesTransition('fade')
  usesTransition;

  /**
   * The action to be sent after the alert has been dismissed (including the CSS transition).
   *
github kaliber5 / ember-bootstrap / addon / components / bs3 / bs-accordion / item.js View on Github external
import AccordionItem from 'ember-bootstrap/components/base/bs-accordion/item';
import typeClass from 'ember-bootstrap/utils/cp/type-class';

export default AccordionItem.extend({
  classNames: ['panel'],
  typeClass: typeClass('panel', 'type')
});
github kaliber5 / ember-bootstrap / addon / components / bs3 / bs-progress / bar.js View on Github external
import ProgressBar from 'ember-bootstrap/components/base/bs-progress/bar';
import typeClass from 'ember-bootstrap/utils/cp/type-class';

export default ProgressBar.extend({
  classNameBindings: ['progressBarAnimate:active'],
  typeClass: typeClass('progress-bar', 'type')
});
github kaliber5 / ember-bootstrap / addon / components / bs4 / bs-accordion / item.js View on Github external
import AccordionItem from 'ember-bootstrap/components/base/bs-accordion/item';
import typeClass from 'ember-bootstrap/utils/cp/type-class';

export default AccordionItem.extend({
  classNames: ['card'],
  typeClass: typeClass('bg', 'type')
});
github kaliber5 / ember-bootstrap / addon / components / bs4 / bs-progress / bar.js View on Github external
import ProgressBar from 'ember-bootstrap/components/base/bs-progress/bar';
import typeClass from 'ember-bootstrap/utils/cp/type-class';

export default ProgressBar.extend({
  classNameBindings: ['progressBarAnimate:progress-bar-animated'],
  typeClass: typeClass('bg', 'type')
});