Posts made by Fran Diox
RE: Infinite scroll + ajax
@123php Hi! I think it’s very simple: https://codepen.io/frankdiox/pen/ayOVPG?editors=1010
setTimeoutwith your AJAX call.
RE: when I init onsenui pro,throw the error about fonts path
RE: <ons-input> clear button
@jamal Try with
type="search". It can even be customized with
Edit: Didn’t see your note It works for me on Android but looks like there is a bug or a style change on iOS… https://stackoverflow.com/questions/35583503/input-type-search-no-longer-shows-cancel-button-x-under-ios
RE: Google Maps AutoComplete & onsenui.min.js Conflict
@jamal I get
This service requires an API key.
This issue is quite weird. Have you checked that your functions are running? Perhaps you can try with
RE: Unable to load JSON data into each template after callback
RE: Jquery doesn't seem to work
So I guess the problem was timing. When adding a listener or, in general, accessing an element that is attached asynchronously (pushPage, load, etc.), you need to ensure your code runs after the element is in place. Normally you use page’s lifecycle events for that.
RE: <ons-back-button> does not show up on Android chrome browser...Works great on iOS and desktop
@mmike Which version of Onsen UI and Android are you using? The back button on Android hides the label (text) but should show a left arrow. Perhaps the SVG for that arrow is not loaded somehow.
RE: tab icon will auto add prefix with 'fa-'
md-). I don’t like this and want to remove it but it would be an important breaking change. I’m thinking of providing something like
ons.disableAutoFA()or something like that…
RE: Jquery doesn't seem to work
@timwd Have you actually created a page out of a template? With
ons-navigatoror any other component that can do it? If you still have the problem of
null, then your elements are still part of a template so they are not reachable. You need to create a page instance as I just mentioned.
In case you already have your elements in place:
ons-buttonis just a styled
div, not a real
input type="submit"so it won’t trigger forms unless you help it a bit.
RE: Linked files and Customizing the theme
css-components-srcfolder contains the necessary tools for creating custom themes.
In order to modify the theme, you can either apply your own custom CSS rules on top Onsen UI defaults (which is good if you just want to change a few things), or create a whole new theme following the steps in the tutorial you posted. I think the latter is not that hard, you just need to install the required tools mentioned there, run the commands and then modify
theme.cssfile. You’ll see the change sin the previewer and will be able to generate a custom
onsen-css-components.css. After that, just replace the default
onsen-css-components.csswith the new one.
RE: react-onsenui Types are incomplete ?
@SharpDev Oh, I see! I was confused because we didn’t actually published any types for
react-onsenui, I wasn’t aware of that package. However, we do publish type definition for
onsenuiwhich can be found here (they are also distributed inside
onsenuinpm package). Perhaps you can use that to update React types, it shouldn’t be too much