Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用extjs4.1.3将userTip放在滑块底部_Extjs_Extjs4.1 - Fatal编程技术网

如何使用extjs4.1.3将userTip放在滑块底部

如何使用extjs4.1.3将userTip放在滑块底部,extjs,extjs4.1,Extjs,Extjs4.1,我在ExtJS4.1.3中使用滑块。我发现我在滑块顶部得到了userTip。现在我想在滑块代码的底部显示如下 var slider=Ext.create('Ext.slider.Single', { width: 300, value: 100, increment: 5, minValue: 5, maxValue: 100, labelWidth: 160, }); 我的滑块结果如下图所示: 我想要如下图所示 请帮我做同样的事情。Ext.slider.Tip.p

我在ExtJS4.1.3中使用滑块。我发现我在滑块顶部得到了userTip。现在我想在滑块代码的底部显示如下

var slider=Ext.create('Ext.slider.Single', {
  width: 300,
  value: 100,
  increment: 5,
  minValue: 5,
  maxValue: 100,
  labelWidth: 160,
});
我的滑块结果如下图所示:

我想要如下图所示


请帮我做同样的事情。

Ext.slider.Tip.prototype.offset=[0,50]

只需在代码上方添加这一行。 这使得所有滑块的tipText都位于下方,无需逐一提及

或者,如果您只想添加到该滑块,请使用以下侦听器:

  listeners:{    
 render:function( ths, eOpts ){      
 ths.plugins[0].offsets = [0,50]; 
      }  
 }