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.

36 lines
858 B

  1. /**
  2. A control that presents an alphabetic panel that you can select from, in
  3. order to perform actions based on the item selected.
  4. {kind: "AlphaJumpList", onSetupItem: "setupItem",
  5. onAlphaJump: "alphaJump",
  6. components: [
  7. {name: "divider"},
  8. {kind: "onyx.Item"}
  9. ]
  10. }
  11. */
  12. enyo.kind({
  13. name: "enyo.AlphaJumpList",
  14. kind: "List",
  15. //* @protected
  16. scrollTools: [
  17. {name: "jumper", kind: "AlphaJumper"}
  18. ],
  19. initComponents: function() {
  20. this.createChrome(this.scrollTools);
  21. this.inherited(arguments);
  22. },
  23. rendered: function() {
  24. this.inherited(arguments);
  25. this.centerJumper();
  26. },
  27. resizeHandler: function() {
  28. this.inherited(arguments);
  29. this.centerJumper();
  30. },
  31. centerJumper: function() {
  32. var b = this.getBounds(), sb = this.$.jumper.getBounds();
  33. this.$.jumper.applyStyle("top", ((b.height - sb.height) / 2) + "px");
  34. }
  35. });