not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1004 B

  1. /**
  2. A control that displays a spinner animation to indicate that activity is
  3. taking place. By default, onyx.Spinner will display a light spinner,
  4. suitable for displaying against a dark background. To render a dark spinner
  5. to be shown on a lighter background, add the "onyx-light" class to the
  6. spinner:
  7. {kind: "onyx.Spinner", classes: "onyx-light"}
  8. Typically, a spinner is shown to indicate activity and hidden to indicate
  9. that the activity has ended. The spinner animation will automatically start
  10. when a spinner is shown. If you wish, you may control the animation directly
  11. by calling the *start*, *stop*, and *toggle* methods.
  12. */
  13. enyo.kind({
  14. name: "onyx.Spinner",
  15. classes: "onyx-spinner",
  16. //* @public
  17. //* Stops the spinner animation.
  18. stop: function() {
  19. this.setShowing(false);
  20. },
  21. //* Starts the spinner animation.
  22. start: function() {
  23. this.setShowing(true);
  24. },
  25. //* Toggles the spinner animation on or off.
  26. toggle: function() {
  27. this.setShowing(!this.getShowing());
  28. }
  29. });