| 1 | define(["dojo/_base/declare", "dojo/dom-geometry", "dojo/dom-style", "dojo/parser", "dijit/_WidgetBase", "dijit/_TemplatedMixin"], |
| 2 | function(declare, geometry, style, parser, _WidgetBase, _TemplatedMixin){ |
| 3 | |
| 4 | return declare("dojox.widget._PagerItem", |
| 5 | [_WidgetBase, _TemplatedMixin], |
| 6 | { |
| 7 | |
| 8 | templateString: '<li class="pagerItem" data-dojo-attach-point="containerNode"></li>', |
| 9 | |
| 10 | resizeChildren: function(){ |
| 11 | var box = geometry.getMarginBox(this.containerNode); |
| 12 | style.set(this.containerNode.firstChild, { |
| 13 | width: box.w +'px', |
| 14 | height: box.h + 'px' |
| 15 | }); |
| 16 | }, |
| 17 | |
| 18 | parseChildren: function(){ |
| 19 | parser.parse(this.containerNode); |
| 20 | } |
| 21 | }); |
| 22 | |
| 23 | }); |