EasyUI Forum
September 14, 2025, 01:31:19 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [Solved] Slider: value and tip not correspond to label  (Read 7575 times)
gorneman
Newbie
*
Posts: 2


View Profile
« on: June 16, 2015, 03:10:28 AM »

Hi,
I modified "Format Tip Information slider" to 500px slider and rule labels [0,'|',100,'|',200,'|',300,'|',400,'|',500], but value and tip not correspond to label ( difference is about 7px). I tried to use converter function, but no changes.
How can I solve? Thanks.
« Last Edit: June 16, 2015, 10:27:27 AM by gorneman » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 16, 2015, 05:11:48 AM »

You can set the 'max' property to 500.
Code:
<input class="easyui-slider" value="12" style="width:300px" data-options="
showTip: true,
rule: [0,'|',100,'|',200,'|',300,'|',400,'|',500],
max: 500,
tipFormatter: function(value){
return value+'px';
}">
Logged
gorneman
Newbie
*
Posts: 2


View Profile
« Reply #2 on: June 16, 2015, 10:28:40 AM »

Thanks, problem was dimensions (height) of the slider: I have modified it in the wrong way.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!