jquery ui spinner strings

584 views Asked by At

Can anyone suggest analog of spinner from jQuery UI, that has ability to display strings instead of specific values? In my example I have two widgets, spinner and select, where select shows string "Foobar" when values is -1, but I want to use spinner to not to bound values to ones from list. http://jsfiddle.net/andrewboltachev/qk6bn/

I want actual plugin to have options like these:

$('#myspinner').spinner({
    'min': -1,
    'values_to_text': function(x) {
        if (x === -1) return 'FooBar';
        return x;
    }
});
0

There are 0 answers