javascript代码实例教程-Ext js 4 slider always show tip demo

发布时间:2019-02-07 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了javascript代码实例教程-Ext js 4 slider always show tip demo脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。

Ext js 4 slider always show tip demo

Ext.define('AlwaysVisibleTip', {     extend: 'Ext.slider.Tip',      inIT: function(slider) {         VAR me = this;         me.callParent(arguments);         slider.removeListener('Dragend', me.hide);         slider.on({             scoPE: me,             change: me.onSlide,             afterrender: function() {                 setTimeout(function() {                     me.onSlide(slider, null, slider.thumbs[0]);                 }, 100);             }         });     } }); Ext.create('Ext.slider.Single', {     width: 200,     value: 50,     increment: 1,     minValue: 0,     maxValue: 100,     plugins: [Ext.create('AlwaysVisibleTip',{         getText: function(thumb) {                          return thumb.value + '%';         }     })],     tipText : function(thumb)     {         return thumb.value + '%';     },     renderTo: Ext.getBody() }); 


javascript代码实例教程-Ext js 4 slider always show tip demo


参考:

https://www.sencha.COM/forum/showthread.php?257843-Always-show-the-tip-text-of-Slider-in-Extjs

https://stackoverflow.com/questions/15198053/always-show-the-tip-text-of-slider-in-extjs




觉得可用,就经常来吧! 脚本宝典 欢迎评论哦! js脚本,巧夺天工,精雕玉琢。小宝典献丑了!

脚本宝典总结

以上是脚本宝典为你收集整理的javascript代码实例教程-Ext js 4 slider always show tip demo全部内容,希望文章能够帮你解决javascript代码实例教程-Ext js 4 slider always show tip demo所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。