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.

28 lines
889 B

  1. /**
  2. A progress bar that can have controls inside of it and has a cancel button on the right.
  3. {kind: "onyx.ProgressButton"},
  4. {kind: "onyx.ProgressButton", barClasses: "onyx-light", progress: 20, components: [
  5. {content: "0"},
  6. {content: "100", style: "float: right;"}
  7. ]}
  8. */
  9. enyo.kind({
  10. name: "onyx.ProgressButton",
  11. kind: "onyx.ProgressBar",
  12. classes: "onyx-progress-button",
  13. events: {
  14. onCancel: ""
  15. },
  16. components: [
  17. {name: "progressAnimator", kind: "Animator", onStep: "progressAnimatorStep", onEnd: "progressAnimatorComplete"},
  18. {name: "bar", classes: "onyx-progress-bar-bar onyx-progress-button-bar"},
  19. {name: "client", classes: "onyx-progress-button-client"},
  20. {kind: "onyx.Icon", src: "$lib/onyx/images/progress-button-cancel.png", classes: "onyx-progress-button-icon", ontap: "cancelTap"}
  21. ],
  22. //* @protected
  23. cancelTap: function() {
  24. this.doCancel();
  25. }
  26. });