onsen-ui

refresh previous page in onsen ui on back button

半城伤御伤魂 提交于 2020-01-04 05:58:00
问题 Hello i am working on onsen ui and have made a simple demo,it contains two pages page1 and page 2,my problem is i want to reload my page1 when i press ons-back-button from page2,as onsen ui maintains a pagestack,i cant do this,i searched a lot for this,but no luck,can anyone please help me how to do this? my code is as below: page1.html <ons-page ng-controller="listingController"> . . . </ons-page> page2.html <ons-page ng-controller="listingController"> <ons-toolbar style="background: #da1e3e

Onsen UI Pagination: navigator and tabbar

拥有回忆 提交于 2019-12-31 02:14:32
问题 I am in doubt about mixing navigator and tabbar. Explaining: the main page (Main page1) consists of two child pages (tab1 and tab2) that are accessed by tabbar, while the other pages (page2 and 3) are accessed through the navigator. The tab1 page is the first one actived. Layout: the tab1 and tab2 pages have the same toolbar (on the top). The page2 and page3 has different toolbar with back-button and another button to redirect to mainpage tab1. My code is this, but i don`t know if it is

Onsen ui:Disable device backbutton in android didnt work

為{幸葍}努か 提交于 2019-12-25 07:03:52
问题 I am developing an android application using Cordova and Onsenui, in whic i want to disable the android back button handler. I've tried this answer ,but didnt work for me Here is my code its placed on top of my app.js file ons.ready(function() { ons.disableDeviceBackButtonHandler(); }); 回答1: Supposing that you are using <ons-navigator var="myNavigator"></ons-navigator> , have you already tried something like this? // To disable a navigator back button handler myNavigator

Onsen-UI cannot load <ons> tags in Meteor

心已入冬 提交于 2019-12-24 22:24:54
问题 I am trying to move avatars pattern of Onsen UI (http://onsen.io/pattern-list_avatars.html) into a Meteor app, but the tags do not load. Firebug logged message from Onsen: Onsen UI require jqLite. Load jQuery after loading AngularJS to fix this error. jQuery may break Onsen UI behavior. This message appeared even though I had jquery package installed and in order to eliminate it I have to include jquery lib into client/lib folder (do not know if that is correct). I have also added urigo

Lazy repeat calculateItemHeight index is always undefined

随声附和 提交于 2019-12-24 17:53:13
问题 I'm using ons-lazy-repeat and I want to have variable item heights depending on the item. For that I'm using, as described in the documentation, a delegate object with a calculateItemHeight function. The problem is all item heights are being set to 20 because initially the index variable is always undefined . Afterwards everything seems to work correctly but everything is already rendered on the ui. Anyone else have the same problem? I don't see what I'm doing wrong here. This is my delegate

Lazy repeat calculateItemHeight index is always undefined

有些话、适合烂在心里 提交于 2019-12-24 17:53:12
问题 I'm using ons-lazy-repeat and I want to have variable item heights depending on the item. For that I'm using, as described in the documentation, a delegate object with a calculateItemHeight function. The problem is all item heights are being set to 20 because initially the index variable is always undefined . Afterwards everything seems to work correctly but everything is already rendered on the ui. Anyone else have the same problem? I don't see what I'm doing wrong here. This is my delegate

Onsen - navigator and sliding menu - function on prepush doesn't working

你说的曾经没有我的故事 提交于 2019-12-24 14:10:02
问题 I have a big problem. I want to use navigator and sliding menu. Then I need to have some behaviour on postpush. This is my codepen example: http://codepen.io/anon/pen/zxgpVo If you stay in Home and navigate from this point, then you see the console.log . But if you change from the sliding menu and go to Products, then the console.log doesn't working and if you return in Home doesn't working here anymore. I create 2 navigator with the same name. This is a right thing? Maybe this can be the

Error: NavigatorView's page stack is empty in onsenui

落爺英雄遲暮 提交于 2019-12-24 11:58:54
问题 I'm developing mobile application using onsenUI and facing this problem when navigating to pages in stack. When moving from first page to second page, we normally use pushPage() . From second page to first page, we use popPage() . But when moving from third page to second page using back button and from second page to first page, I'm getting Error: NavigatorView's page stack is empty I tried using resetToPage() but still getting this error.. Here what I tried. PLUNKER UPDATED: When navigating

OnsenUI loads page in text, via a splitter

可紊 提交于 2019-12-24 00:53:06
问题 I have previously created a web app, and now I would like to integrate it with OnsenUI to enable my app to be used on all mobile devices as well as the web. I am using a splitter in a toolbar which will be the header of all pages, and it will redirect the user to other pages when they click an item in it. Clicking the home item successfully redirects to the home page (index, which is already loaded correctly). However, clicking any of the other items in the splitter redirects me to the

Content-Security-Policy error https://ssl.gstatic.com

空扰寡人 提交于 2019-12-23 17:12:12
问题 I am getting an error as captured in the screenshot below: It reads: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src file: data: chrome-extension: https://ssl.gstatic.com". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback. What am I doing wrong and how can I resolve the Content-Security-Policy error? Below is my meta-tag in, in my index.html