mstdmstd Posted March 12, 2020 Share Posted March 12, 2020 Hello, I need to make jsfiddle with vuejs, vee-validate and v-money libs, and when I need to add some js lib to jsfiddle I open https://cdnjs.com/ and search lirary I need and found lib I attach in jsfiddle. But on https://cdnjs.com/ entering “v-money” it did not show any results. If there is a way to create a jsfiddle(or maybe some other similar service) with v-money lib? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/310277-how-to-create-a-jsfiddle-with-v-money-lib/ Share on other sites More sharing options...
requinix Posted March 12, 2020 Share Posted March 12, 2020 Their own documentation lists a couple jsfiddles. Have you looked at them? Quote Link to comment https://forums.phpfreaks.com/topic/310277-how-to-create-a-jsfiddle-with-v-money-lib/#findComment-1575380 Share on other sites More sharing options...
mstdmstd Posted March 12, 2020 Author Share Posted March 12, 2020 Could, you please give a link to this docs? Quote Link to comment https://forums.phpfreaks.com/topic/310277-how-to-create-a-jsfiddle-with-v-money-lib/#findComment-1575381 Share on other sites More sharing options...
requinix Posted March 12, 2020 Share Posted March 12, 2020 Trying my best to not sound flippant, Have you tried Google? 1 Quote Link to comment https://forums.phpfreaks.com/topic/310277-how-to-create-a-jsfiddle-with-v-money-lib/#findComment-1575385 Share on other sites More sharing options...
mstdmstd Posted March 13, 2020 Author Share Posted March 13, 2020 Thanks for your hint ! I got a ref to v-money from v-money github page and made thishttp://jsfiddle.net/oxqv7bwt/1/ fiddle. But validating data I always see success validation, event with negative default value : I added console in positive_price rule definition, but I do not see this output... Please, take a look why positive_price is not triggered. The sense of this fiddle is just to run positive_price custom rule. Quote Link to comment https://forums.phpfreaks.com/topic/310277-how-to-create-a-jsfiddle-with-v-money-lib/#findComment-1575393 Share on other sites More sharing options...
requinix Posted March 13, 2020 Share Posted March 13, 2020 1. As far as I can tell, the "rules" is supposed to be a string - not an object. If you didn't need to account for is_page_loaded then you should say <validation-provider ... rules="required|positive_price"> 2. The validation function needs to return true or false. You are returning string or false. 1 Quote Link to comment https://forums.phpfreaks.com/topic/310277-how-to-create-a-jsfiddle-with-v-money-lib/#findComment-1575401 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.