{"action":"created","issue":{"url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/195","repository_url":"https://api.github.com/repos/BobKnothe/autoNumeric","labels_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/195/comments","events_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/195/events","html_url":"https://github.com/BobKnothe/autoNumeric/issues/195","id":138216040,"number":195,"title":"Provide a formatting API that is not requires element","user":{"login":"ishaikovsky","id":491766,"avatar_url":"https://avatars.githubusercontent.com/u/491766?v=3","gravatar_id":"","url":"https://api.github.com/users/ishaikovsky","html_url":"https://github.com/ishaikovsky","followers_url":"https://api.github.com/users/ishaikovsky/followers","following_url":"https://api.github.com/users/ishaikovsky/following{/other_user}","gists_url":"https://api.github.com/users/ishaikovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ishaikovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishaikovsky/subscriptions","organizations_url":"https://api.github.com/users/ishaikovsky/orgs","repos_url":"https://api.github.com/users/ishaikovsky/repos","events_url":"https://api.github.com/users/ishaikovsky/events{/privacy}","received_events_url":"https://api.github.com/users/ishaikovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-03T15:50:26Z","updated_at":"2016-03-07T20:54:07Z","closed_at":null,"body":"Hi, \r\n\r\nThis is more of an enhancement request but the one I feel might be beneficial for any such plugin. There are cases in our application where we need just to apply formatting and we don't have the element yet (or might not have it at all). And in this case - we need to create a \"synthetic\" element set value, initialize autoNumeric, use \"get\" and finally destroy it. \r\n\r\nI feel that it should not be very tough to provide a \"format\" method which will get the numerical value and set of formatting settings (same as \"init\" for the element accepts - and have them defaulted in the same way) and just return the formatted value.\r\n\r\nWDYT?"},"comment":{"url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/comments/193444734","html_url":"https://github.com/BobKnothe/autoNumeric/issues/195#issuecomment-193444734","issue_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/195","id":193444734,"user":{"login":"BobKnothe","id":467351,"avatar_url":"https://avatars.githubusercontent.com/u/467351?v=3","gravatar_id":"","url":"https://api.github.com/users/BobKnothe","html_url":"https://github.com/BobKnothe","followers_url":"https://api.github.com/users/BobKnothe/followers","following_url":"https://api.github.com/users/BobKnothe/following{/other_user}","gists_url":"https://api.github.com/users/BobKnothe/gists{/gist_id}","starred_url":"https://api.github.com/users/BobKnothe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobKnothe/subscriptions","organizations_url":"https://api.github.com/users/BobKnothe/orgs","repos_url":"https://api.github.com/users/BobKnothe/repos","events_url":"https://api.github.com/users/BobKnothe/events{/privacy}","received_events_url":"https://api.github.com/users/BobKnothe/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T20:54:06Z","updated_at":"2016-03-07T20:54:06Z","body":"Ilya,\n\nWhich version of autoNumeric are you using?\n\nI can modify and send you a custom version.\n\nAt this time I am not sure I want to add this as a supported feature.\n\nBob\n\nOn 3/4/2016 3:05 PM, Ilya Shaikovsky wrote:\n>\n> Robert,\n>\n> That is the thing. We do need all the power of autonumeric in forms. \n> However when it comes to just to display in the cell table \n> (non-editable) - we need this API.\n>\n> And what we don't want to do - is to introduce another plugin just to \n> format (with different options and so on) assuming we already have \n> autonumeric.\n>\n> If I would need just format - yup - will take something more \n> lightweight and task specific.\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/BobKnothe/autoNumeric/issues/195#issuecomment-192466494>.\n>\n\n"}}