Source: components/sl-span.js

  1. import Ember from 'ember';
  2. import layout from '../templates/components/sl-span';
  3. /**
  4. * @module
  5. * @augments ember/Component
  6. */
  7. export default Ember.Component.extend({
  8. // -------------------------------------------------------------------------
  9. // Dependencies
  10. // -------------------------------------------------------------------------
  11. // Attributes
  12. /** @type {Object} */
  13. layout,
  14. /** @type {String} */
  15. tagName: 'span',
  16. // -------------------------------------------------------------------------
  17. // Actions
  18. // -------------------------------------------------------------------------
  19. // Events
  20. // -------------------------------------------------------------------------
  21. // Properties
  22. /**
  23. * Whether the underlying loading-icon is inverse
  24. *
  25. * @type {Boolean}
  26. */
  27. inverse: false,
  28. /**
  29. * Whether to show the loading icon or content
  30. *
  31. * @type {Boolean}
  32. */
  33. loading: false,
  34. /**
  35. * The value to display once loaded/ready
  36. *
  37. * @type {?String}
  38. */
  39. value: null
  40. // -------------------------------------------------------------------------
  41. // Observers
  42. // -------------------------------------------------------------------------
  43. // Methods
  44. });