var digit = new Roo.ux.FlipCounter.Digit({ manager : this, currentNumber : num });
digit.manager = this;
this.digits.push(digit);
- digit.render(this.el);
+ digit.render(this.el, 0);
// Update width
this.ulWidth = this.ulWidth + digit.el.getWidth(true);
manager : null, // the flipcounter...
currentNumber : 0,
+
+
+ currentNum : 0,
+ nextNum : 0,
targetNum : 0,
topFrontDiv : null,
bottomNumFront : null,
+
+
getAutoCreate : function(){
return {
{
cls : 'flipper_top flipper_top_front',
cn : [
- { tag: 'span', html: num },
+ { tag: 'span', html: this.currentNumber },
{ cls : 'rings' }
]
{
cls : 'flipper_bottom flipper_bottom1 flipper_bottom_back',
cn : [
- { tag: 'span', html: num },
+ { tag: 'span', html: this.currentNumber },
{ cls : 'rings' }
]
},
{
cls : 'flipper_bottom flipper_bottom_front',
cn : [
- { tag: 'span', html: num },
+ { tag: 'span', html: this.currentNumber },
{ cls : 'rings' }
]
},
this.bottomNumBack = this.el.select('.flipper_bottom_back span',true);
this.bottomNumFront = this.el.select('.flipper_bottom_front span',true);
- this.targetNum = currentNumber;
- this.currentNum = currentNumber;
- this.nextNum = currentNumber;
+ this.targetNum = this.currentNumber;
+ this.currentNum = this.currentNumber;
+ this.nextNum = this.currentNumber;
this.currentlyAnimating = false;
},