@onsenui said in How to ask a question.:
You can include any other resources that you consider important to understand your question. For example you can add links to external pages or embed images in the post (drag and drop the images to the composer).
interesting great information :)
It isn’t possible to use a Cordova plugin with Onsen UI without using Cordova.
For the first option, could you make an example to show what you are doing?
You may also find it useful to ask for help at the Onsen UI community discord instead of here as it tends to be checked more frequently: https://discord.gg/JWhBbnE
OK, thanks again to stack overflow, I found the answer to my question. I’m posting it here because I’ve seen other similar questions in the forum that were never answered. Maybe this will help someone else.
My onsen-ui Html5:
<div style="text-align: center; margin-top: 30px;margin: bottom 0;">
<ons-input type="text" id="date" >
<div style="text-align: center; font-size:small; margin-top: 0px;">
<ons-input type="text" id="time" >
// get a new date (locale machine date time)
var date = new Date();
// get the date as a string
var n = date.toDateString();
// get the time as a string
var time = date.toLocaleTimeString();
// find the html element with the id of "date"
// set the innerHTML of that element to the date a space the time
document.getElementById('date').innerHTML = n; //date
document.getElementById('time').innerHTML = time;
@emccorson said in Ons-tabbar with ons-navigator active Tab Problems png to ico:
Internally, each ons-tab has a radio input which is checked when the tab is active.
It’s a bit hacky, but you should just need to check the input and uncheck the currently active input for the active styling to work.
e.g. if fa-search is currently selected and you want to change tab to fa-user-md:
document.querySelector('ons-tab[icon="fa-search"] input').checked = false;
document.querySelector('ons-tab[icon="fa-user-md"] input').checked = true;
Thank you soooo much, that’s been bugging me for days x
It’s possible you will get some CSS conflicts due to Onsen UI’s class names. We are looking at fixing that in a future version but for the moment if your class name is the same as an Onsen UI, you may have a collision. Please see:
If you have any ongoing problems, you may also find it useful to ask for help at the Onsen UI community discord: https://discord.gg/JWhBbnE
sergei-krylov created this issue in OnsenUI/OnsenUI
Scope components css classes into namespace
I solved this problem by myself.
In the onPause and onResume events, I performed a state change that caused the object to be rewritten on the top stack page.
This caused all the stacked pages to disappear.
I have changed the onPause and onResume events to exclude the case of scan startup and shutdown, and now they work fine.