Ext js 4 slider always show tip demo
来源:互联网 发布:好奇心探索 知乎 编辑:程序博客网 时间:2024/05/16 12:14
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()});
参考:
http://www.sencha.com/forum/showthread.php?257843-Always-show-the-tip-text-of-Slider-in-Extjs
http://stackoverflow.com/questions/15198053/always-show-the-tip-text-of-slider-in-extjs
0 0
- Ext js 4 slider always show tip demo
- Ext JS 学习(1) Ext.MessageBox.show()方法的使用
- Ext.Slider进度条使用
- 滚轴控件 Ext.slider
- 一个Ext js ajax 的Demo
- Ext js lock grid reconfig demo
- Ext.form.ComboBox tip
- Ext.tip.ToolTip 提示
- ExtJs4 Ext.tip.ToolTip
- js tip
- 扩展Ext的Slider组件
- Ext.slider控件的用法
- Config Nautilus always show location bar
- Ext.MessageBox.show
- Ext.MessageBox.show 配置
- Ext.Msg.show
- Ext.Msg.show
- Ext.MessageBox.show 配置
- 机器学习书单
- log4j深入研究(1)
- android屏幕分辨率适配及dip、sp、pt、px等区别
- Linux读取一行文本的方法
- 采用spring+structs+hibanate框架开发javaWeb项目
- Ext js 4 slider always show tip demo
- ActiveX中的一些情节!
- POJ3461 字符串哈希
- Hadoop Mapreduce multiple Input files
- WinCE 读取Mac地址实践测试
- tcpip长连接 原理
- 今天朋友结婚
- MRF在计算机视觉中的应用
- PlayMaker — 动作