Open anderserla opened 9 years ago
Example: You can achieve this by defining a lookup object mapping e. g. the zoom level to a text:
var lookup = { 0: "International" , 1: "National", // ... }
and read the text defined by the zoom level and pass it via the 'getText' function of the slider's tip , like this (untested):
plugins: new Ext.slider.Tip({ getText: function(thumb){ return String.format('{0}', lookup[thumb.value]); } })
Example: You can achieve this by defining a lookup object mapping e. g. the zoom level to a text:
and read the text defined by the zoom level and pass it via the 'getText' function of the slider's tip , like this (untested):