I started from the ion-tabs project, and I added a button to get the current tab information (this is obviously a simplified version of what I need to do). in Ionic3, it was enough to have
#ViewChild('myTabs') tabRef: Tabs;
and then in the click button I had
this.tabRef.getSelected();
and that was it - and I had the info.
now in ionic 4 the exact same code throws an exception :
this.tabRef.getSelected is not a function
what is wrong? How do I get the tabs information in code ?
Thanks,
Yuval
Related
I'd like to change back button dynamically in app having localization feature in Ionic 5.
Of course, I can do it config.set function in Ionic 3 but it is deprecated in Ionic 5.
I want the same function I can use that in a page like profile setting page.
This is my current solution.
<ion-back-button [text]="backButtonText"></ion-back-button>
This works well in the page but I don't like to add the same code [text]="backButtonText" in other pages too.
I am using IONIC 2 + Angular 2.
I am using Tabview for my dashboard. The issue is when I try to redirect page with this.nav.push(TabPage), A constructor of TabPage is getting called but View is not updating.
When I Minimise and Maximise app again, then I can see TabPage with all the Tabs but not without.
A problem is Tabs layout I guess as Its working if I redirect it to normal page instead of Tabs page.
You probably ran into one of the many navigation/tabs issues which a present in the current version of ionic. You can try downgrading to ionic-angular version 3.5.3 which was the version before most of these issues were introduced by refactoring the way the NavController generates URLs.
I have developed a mobile application. Most of the functions are inside, but I have some very strange behaviour inside the app on iOs (not tested on android yet).
When I click on an item: the event after the click is called twice. This isn't happening the whole time, but happens now and then. This is a problem for when I try to go to the next slide (he things he should move twice to a next slide), but also when I try to open the gallery for selecting photos, he opens the gallery twice, login for facebook happens twice etc... The strange thing is, that this isn't the whole time the case.
I have normal buttons like
<button ion-button color="black" class="skip-button"
(click)="nextStep()" [hidden]="lastSlide">Next</button>
so I don't think that the coding is wrong (or is it wrong).
I use this version:
ionic --version
2.1.18
In the beginning of the development I hadn't this issue. I think that I was using an older version of ionic2 then. Is there a way to go back perhaps?
I was in the meantime working on another project without having this issue (in that project). My last try was to copy the other project and copy pages and providers from the project with the error. The error is now gone, but still no clue why there was such an error.
I´m trying to get menu items classes/IDs to be able to write a conditions for front-end.
I tried the following code :
$element['#attributes']['class']
But it's not showing me anything.
Can you please show me a way?
There is a nice little module to do this if you don't need to hard code them:
https://www.drupal.org/project/menu_attributes
I've now put all night and tried to get my iPhone program to perform as intended, it has also succeed me sometimes but now I have pages with a problem I simplehen can not get resolved.
've tried this video guide that makes it I want it to but I stare my project up with NSObject (Windows Based) for my program.
Has anyone any. can help me a little further here? or link to come there can get me on track again
link: http://www.youtube.com/watch?v=2GeazgOqKJ4
U can change that NSObject to UIView while selecting the view itself,
Just Right click classes-->Add Files-->in that dialog box, the bottom section contains a dropdown list box from there u can select ur required Type....