{"action":"created","issue":{"url":"https://api.github.com/repos/soundar24/roundSlider/issues/50","repository_url":"https://api.github.com/repos/soundar24/roundSlider","labels_url":"https://api.github.com/repos/soundar24/roundSlider/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/soundar24/roundSlider/issues/50/comments","events_url":"https://api.github.com/repos/soundar24/roundSlider/issues/50/events","html_url":"https://github.com/soundar24/roundSlider/issues/50","id":183782731,"number":50,"title":"Is there a way to detect out of limits values?","user":{"login":"pauloFernandes","id":2263368,"avatar_url":"https://avatars.githubusercontent.com/u/2263368?v=3","gravatar_id":"","url":"https://api.github.com/users/pauloFernandes","html_url":"https://github.com/pauloFernandes","followers_url":"https://api.github.com/users/pauloFernandes/followers","following_url":"https://api.github.com/users/pauloFernandes/following{/other_user}","gists_url":"https://api.github.com/users/pauloFernandes/gists{/gist_id}","starred_url":"https://api.github.com/users/pauloFernandes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauloFernandes/subscriptions","organizations_url":"https://api.github.com/users/pauloFernandes/orgs","repos_url":"https://api.github.com/users/pauloFernandes/repos","events_url":"https://api.github.com/users/pauloFernandes/events{/privacy}","received_events_url":"https://api.github.com/users/pauloFernandes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-18T19:38:22Z","updated_at":"2016-10-19T19:48:59Z","closed_at":null,"body":"Is there a way to detect if the user has set a value grater or lesser than slider's limit. For example, if my limits are 0-100, there's an event where I can say that the value is out of bounds, if the user sets 101?"},"comment":{"url":"https://api.github.com/repos/soundar24/roundSlider/issues/comments/254920826","html_url":"https://github.com/soundar24/roundSlider/issues/50#issuecomment-254920826","issue_url":"https://api.github.com/repos/soundar24/roundSlider/issues/50","id":254920826,"user":{"login":"soundar24","id":8916666,"avatar_url":"https://avatars.githubusercontent.com/u/8916666?v=3","gravatar_id":"","url":"https://api.github.com/users/soundar24","html_url":"https://github.com/soundar24","followers_url":"https://api.github.com/users/soundar24/followers","following_url":"https://api.github.com/users/soundar24/following{/other_user}","gists_url":"https://api.github.com/users/soundar24/gists{/gist_id}","starred_url":"https://api.github.com/users/soundar24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soundar24/subscriptions","organizations_url":"https://api.github.com/users/soundar24/orgs","repos_url":"https://api.github.com/users/soundar24/repos","events_url":"https://api.github.com/users/soundar24/events{/privacy}","received_events_url":"https://api.github.com/users/soundar24/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T19:48:59Z","updated_at":"2016-10-19T19:48:59Z","body":"Currently I have prepared a workaround to achieve your requirement. Check the below code, which needs to be included in your sample:\r\n```\r\nvar _fn1 = $.fn.roundSlider.prototype._limitValue;\r\n$.fn.roundSlider.prototype._limitValue = function (val) {\r\n    var userValue = val;\r\n    var modifiedValue = _fn1.call(this, val);\r\n    var currentValue = this._handle1.value;\r\n    var canUseModifiedValue = true;\r\n    if (userValue !== modifiedValue) {\r\n        canUseModifiedValue = this._raise(\"outOfRange\", {\r\n            userValue: userValue, modifiedValue: modifiedValue, currentValue: currentValue\r\n        });\r\n    }\r\n    return canUseModifiedValue ? modifiedValue : currentValue;;\r\n}\r\n```\r\nSo when you enter a large value in the center textbox, it will raise an event **outOfRange**. In that event arguments you will get the required values, so based on that you can notify to the user. Also in that event if you return as \"false\" then it won't change the value.\r\n\r\nCheck the below demo, hopes it will helps you:\r\n## http://jsbin.com/fogewaj/edit?html,console,output\r\nCheck the demo and let me know your comments."}}
{"actor":{"display_login":"soundar24"}}