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.
 
 
 
 
 

37 lines
858 B

/**
A control that presents an alphabetic panel that you can select from, in
order to perform actions based on the item selected.
{kind: "AlphaJumpList", onSetupItem: "setupItem",
onAlphaJump: "alphaJump",
components: [
{name: "divider"},
{kind: "onyx.Item"}
]
}
*/
enyo.kind({
name: "enyo.AlphaJumpList",
kind: "List",
//* @protected
scrollTools: [
{name: "jumper", kind: "AlphaJumper"}
],
initComponents: function() {
this.createChrome(this.scrollTools);
this.inherited(arguments);
},
rendered: function() {
this.inherited(arguments);
this.centerJumper();
},
resizeHandler: function() {
this.inherited(arguments);
this.centerJumper();
},
centerJumper: function() {
var b = this.getBounds(), sb = this.$.jumper.getBounds();
this.$.jumper.applyStyle("top", ((b.height - sb.height) / 2) + "px");
}
});