html-framework-7

Why the value from input is not passed to VUEX

点点圈 提交于 2019-11-29 17:16:24
I can't transfer the value from input to the store . When I click on the add item button, I need to create a block with its delete button and the text entered in the input . And then save it all in localstorage. But now I am creating only a new block without text. Please help me fix my code to make it work. Here's how it should work But how it works now What I'm doing wrong? How do I transfer the value from Input to Vuex? Here is my code <template> <f7-block-title>Some items</f7-block-title> <f7-block v-for="(cat, n) in getCats" :key="n"> <span>{{ cat }}</span> <f7-button fill color="red"

Meteor infinite redirect instead of render 404

我的梦境 提交于 2019-11-29 11:56:37
I have a simple iron-router config in my /lib/router.coffee: Router.configure notFoundTemplate: "notFound" Router.map -> @route "app", path: "/" template: "app" When entering on / it's works, but if I try go to /abc then it redirects me at /#!abc, after that it redirects me at /abc and so repeated endlessly (I see these changes in the address bar of a browser, in the browser log redirection from / to /abc and back). I never see a 404 error. Has anyone encountered such behavior? I use Meteor v1.0.2.1. There is my meteor list: alethes:lodash 0.7.1 appcache 1.0.3 coffeescript 1.0.5 ground

phonegap + framework7 how to programmtacally set starting page?

微笑、不失礼 提交于 2019-11-28 14:35:07
I have application which on start lets you pick - if are you contributor or user. After that I want always load the starting page for a contributor or the user. I know you can set <content src="index.html" /> to do it once on start, but how can I do it dynamically? @proofzy answer is right, but you could still do it using only DOM7 instead of Jquery Inside your JS file: //to save data if user pick contributor or user button after first start. $$("#contributor").on('click', function(){ localStorage.setItem("whois", "contributor"); }); //And call this same script but for user: $$("#user").on(

Meteor infinite redirect instead of render 404

纵然是瞬间 提交于 2019-11-28 05:43:00
问题 I have a simple iron-router config in my /lib/router.coffee: Router.configure notFoundTemplate: "notFound" Router.map -> @route "app", path: "/" template: "app" When entering on / it's works, but if I try go to /abc then it redirects me at /#!abc, after that it redirects me at /abc and so repeated endlessly (I see these changes in the address bar of a browser, in the browser log redirection from / to /abc and back). I never see a 404 error. Has anyone encountered such behavior? I use Meteor

phonegap + framework7 how to programmtacally set starting page?

自作多情 提交于 2019-11-27 08:47:14
问题 I have application which on start lets you pick - if are you contributor or user. After that I want always load the starting page for a contributor or the user. I know you can set <content src="index.html" /> to do it once on start, but how can I do it dynamically? 回答1: @proofzy answer is right, but you could still do it using only DOM7 instead of Jquery Inside your JS file: //to save data if user pick contributor or user button after first start. $$("#contributor").on('click', function(){

Unable to preventDefault inside passive event listener

懵懂的女人 提交于 2019-11-27 04:28:35
I'm using Framework7 sortable list and it works well, just that it doesn't trigger an event when the list is changed. So I'm trying a few built-in events: $('.sortable-handler').on('touchstart', function (e) { e.preventDefault(); alert('touchstart'); }); $('.sortable-handler').on('touchmove', function (e) { e.preventDefault(); console.log('touchmove'); }); $('.sortable-handler').on('touchcancel', function (e) { e.preventDefault(); console.log('touchcancel'); }); $('.sortable-handler').mouseleave(function (e) { e.preventDefault(); console.log('mouseleave'); }); .. but all I get is: Unable to

Unable to preventDefault inside passive event listener

一世执手 提交于 2019-11-26 11:11:55
问题 I\'m using Framework7 sortable list and it works well, just that it doesn\'t trigger an event when the list is changed. So I\'m trying a few built-in events: $(\'.sortable-handler\').on(\'touchstart\', function (e) { e.preventDefault(); alert(\'touchstart\'); }); $(\'.sortable-handler\').on(\'touchmove\', function (e) { e.preventDefault(); console.log(\'touchmove\'); }); $(\'.sortable-handler\').on(\'touchcancel\', function (e) { e.preventDefault(); console.log(\'touchcancel\'); }); $(\'