Search found 26 matches

Go to advanced search

by brendanm@ite.co.za
Tue Aug 18, 2020 12:18 pm
Forum: Issues
Topic: Local Notification from Ionic 4 PWA
Replies: 15
Views: 23998
 
Jump to post

Local Notification from Ionic 4 PWA

I have been experimenting with Local Notifications using the Ionic 4 tutorial. But this appears to only work with native apps and not PWA. Trawling the web I see that it should be possible to do Local Notifications with a PWA - well at least on Windows and Android. Has anyone actually done this and ...
by brendanm@ite.co.za
Sat Aug 08, 2020 9:59 am
Forum: Issues
Topic: Custom page background from media manager
Replies: 3
Views: 1879
 
Jump to post

Re: Custom page background from media manager

Resolved. If I set the page SCSS to this it works:

ion-content {
--background: no-repeat center/cover url('../../assets/images/KM_Teekay.jpg');
}

Strange that the other path of '../assets/images/KM_Teekay.jpg' showed the image at deisgn time but not when Tested

by brendanm@ite.co.za
Fri Aug 07, 2020 6:52 pm
Forum: Issues
Topic: Custom page background from media manager
Replies: 3
Views: 1879
 
Jump to post

Custom page background from media manager

On one of my Ionic4 pages I want a custom background JPG from the nedia manager. I created this is the Page SCSS: ion-content { --background: no-repeat center/cover url('../assets/images/KM_Teekay.jpg'); } In design time the background image is shown correctly. But as soon as I test then this error ...
by brendanm@ite.co.za
Fri Aug 07, 2020 6:25 am
Forum: Issues
Topic: Ionic4 Typescript to hide/show a component
Replies: 6
Views: 2862
 
Jump to post

Re: Ionic4 Typescript to hide/show a component

Thanks for the link. I had already worked around it by doing all the *ngIf work in the background and then bound my list to a temp array which just contained the list items I wanted to show. Messy but workable

by brendanm@ite.co.za
Fri Jul 31, 2020 7:16 am
Forum: Issues
Topic: Ionic4 Typescript to hide/show a component
Replies: 6
Views: 2862
 
Jump to post

Re: Ionic4 Typescript to hide/show a component

The ngIf works well. But I am struggling to get it to show/hide indiviual ListItems. On my ListItem I have this: *ngFor: let task of taskList *ngIf: true That does not work. I was hoping it would show all list items. In fact the app shows nothing when Tested. Ultimately I want to show/hide list item...
by brendanm@ite.co.za
Mon Jul 27, 2020 6:22 pm
Forum: Issues
Topic: Ionic4 Typescript to hide/show a component
Replies: 6
Views: 2862
 
Jump to post

Ionic4 Typescript to hide/show a component

I am looking for the Typescript syntax to hide or show an Image component when a Button is clicked. I see some examples but not for Ionic 4 Typescript.

Go to advanced search