jQWidgets Forums

jQuery UI Widgets Forums Editors ScrollBar, Slider, BulletChart, RangeSelector tooltipFormatFunction does not work

This topic contains 2 replies, has 2 voices, and was last updated by  badera 10 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • tooltipFormatFunction does not work #65628

    badera
    Participant

    Dear jqWidgets Team

    I have problems using customized tooltips on jqxSlider Control. Why does the following not work?

    
    <!DOCTYPE html>
    <html ng-app="demoApp">
    <head>
        <title id="Description">jqxSlider directive for AngularJS</title>
        <link rel="stylesheet" type="text/css" href="../../jqwidgets/styles/jqx.base.css" />
        <script type="text/javascript" src="../../scripts/angular.min.js"></script>
        <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxslider.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxangular.js"></script>
        <script type="text/javascript" src="../../scripts/demos.js"></script>
        <script type="text/javascript">
            var demoApp = angular.module("demoApp", ["jqwidgets"]);
    
            demoApp.controller("demoController", function ($scope) { 
                $scope.value = 200;
                
                $scope.sliderSettings = {
                    min: 100,
                    max: 500,
                    tooltip: true,
                    tooltipFormatFunction: function(value) {
                        console.log("this function is never called...");
                        return new Number(888).toPrecision(2);
                    }
                };
            });
        </script>
    </head>
    <body>
        <div ng-controller="demoController">
            <br /><br />
            <jqx-slider ng-model="value" jqx-settings="sliderSettings"></jqx-slider>
            <br /><br />
            <div class="jqx-rc-all" style="background: lime;  height: 50px;" ng-style="{ width: value + 'px' }"></div>
        </div>
    </body>
    </html>
    

    Thanks for your help in advance!
    – badera

    tooltipFormatFunction does not work #65647

    Peter Stoev
    Keymaster

    Hello Badera,

    We cannot find a problem with tooltipFormatFunction in the version that is Online. Example: http://jsfiddle.net/badws2sf/. If your question is about AngularJS, then please post it in the appropriate Forum.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    tooltipFormatFunction does not work #65661

    badera
    Participant
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.