February 20, 2019, 11:46 pm
@skildfrix wrote:
I wanted to align my icons and text on my button to the left but seems like it doesn’t work in my case. I tried declaring through HTML class and ID and applying text-align: left;
and following the solution at this post from stack overflow but it only seems to work in Ionic v2.
Here’s how it looks like with the codes below.
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.10.3 (C:\Users\Johndel\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.1
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.4.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : not available
Cordova Plugins : not available
System:
NodeJS : v10.15.1 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 8.1
profile.component.html
<ion-content>
<div id="profileCover">
<div id="coverTopRightMenu">
<ion-icon name="cart"></ion-icon>
<ion-icon name="chatboxes"></ion-icon>
</div>
<img src="../../../assets/profile/cover.jpg">
<img id="accPic" src="../../../assets/profile/accPic.png">
<div id="coverMenu">
<ion-button color="primary">SIGN UP</ion-button>
<ion-button id="btnLogin">LOGIN</ion-button>
</div>
</div>
<div id="menu">
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="today"></ion-icon>
</ion-col>
<ion-col>My Purchases</ion-col>
</ion-row>
</ion-button>
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="heart-empty"></ion-icon>
</ion-col>
<ion-col>My Likes</ion-col>
</ion-row>
</ion-button>
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="time"></ion-icon>
</ion-col>
<ion-col>Recently Viewed</ion-col>
</ion-row>
</ion-button>
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="mail-unread"></ion-icon>
</ion-col>
<ion-col>Refer a Friend</ion-col>
</ion-row>
</ion-button>
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="logo-bitcoin"></ion-icon>
</ion-col>
<ion-col>My Shopee Coins</ion-col>
</ion-row>
</ion-button>
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="star-outline"></ion-icon>
</ion-col>
<ion-col>My Rating</ion-col>
</ion-row>
</ion-button>
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="contact"></ion-icon>
</ion-col>
<ion-col>My Account</ion-col>
</ion-row>
</ion-button>
<ion-button color="light" expand="full">
<ion-row>
<ion-col>
<ion-icon name="help-circle-outline"></ion-icon>
</ion-col>
<ion-col>Help</ion-col>
</ion-row>
</ion-button>
</div>
</ion-content>
profile.component.scss
#menu{
vertical-align: bottom;
}
#menu > ion-button {
height: 80px;
}
#accPic{
position: absolute;
top: 18vh;
left: 5vw;
border-radius: 50%;
width: 15vw;
height: 15vh / 2;
background-color: silver;
border: 0.5vh solid white;
}
#profileCover > #coverMenu{
position: absolute;
top: 22vh;
left: 60vw;
width: 100vw;
}
#profileCover > #coverMenu > ion-button{
width: 18%;
height: 5vh;
font-size: 50%;
background-color: transparent;
padding-left: 5px;
}
#coverTopRightMenu{
position: absolute;
left: 80vw;
width: 100vh;
}
#coverTopRightMenu > ion-icon{
margin: 1vh;
}
ion-icon{
width: 5vw;
height: 5vh;
}
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 12:12 am
↧
↧
February 21, 2019, 12:24 am
@ArtoRomazotty wrote:
Can someone help?
In variables.scss i have:
:root{
–ion-color-primary: #3880ff;
–ion-color-primary-rgb: 56, 128, ;255;
…e.g
}
How i can get them without overriding?
This not work:
const root = document.querySelector(’:root’);
const statusBarBackground = root.style.getPropertyValue(’–ion-color-primary’);
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 1:36 am
↧
February 21, 2019, 1:48 am
@prabhashi1 wrote:
Hi,
I’m new to ionic frame work. I need to create an app with customer rating page. so far I refer some articles and couldn’t get an idea. Here’s my scss and html files. I’m looking for help to my ts code
html file
<ion-header>
<ion-toolbar>
<ion-title align="center" style="color:white">
GET-METER
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<form #form="ngForm">
<div>
<div align = "center" style="margin-top: 3%">
<ion-label position="floating" id="dheading" style="margin-top:5%;font-size: x-large;color:white"> Customer Rating</ion-label>
</div>
<div style="margin-top: 10%">
<rating [rate]="rate" readonly="false" size="default" (rateChange)="onRateChange($event)">
</rating>
</div>
</div>
</form>
</ion-content>
and scss file
<ion-header>
<ion-toolbar>
<ion-title align="center" style="color:white">
GET-METER
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<form #form="ngForm">
<div>
<div align = "center" style="margin-top: 3%">
<ion-label position="floating" id="dheading" style="margin-top:5%;font-size: x-large;color:white"> Customer Rating</ion-label>
</div>
<div style="margin-top: 10%">
<rating [rate]="rate" readonly="false" size="default" (rateChange)="onRateChange($event)">
</rating>
</div>
</div>
</form>
</ion-content>
ts file
import { Component,Input, Output, EventEmitter,OnInit } from '@angular/core';
@Component({
selector: 'app-customer-rate',
templateUrl: './customer-rate.page.html',
styleUrls: ['./customer-rate.page.scss'],
})
export class CustomerRatePage implements OnInit {
constructor() { }
@Input() rating: number;
@Input() itemId: number;
@Output() ratingClick: EventEmitter<any> = new EventEmitter<any>();
inputName: string;
ngOnInit() {
this.inputName = this.itemId + '_rating';
}
onClick(rating: number): void {
this.rating = rating;
this.ratingClick.emit({
itemId: this.itemId,
rating: rating
});
}
}
Posts: 1
Participants: 1
Read full topic
↧
↧
February 21, 2019, 1:53 am
@CreativeArtDesign wrote:
ionic cordova resources ios -i
[ERROR] Source image files were not found for the following platforms/types:
- ios/icon
Collecting resource configuration and source images - done!
✔ Filtering out image resources that do not need regeneration - done!
✔ Uploading source images to prepare for transformations: 1 / 1 complete - done!
✔ Generating platform resources: 13 / 13 complete - done!
✔ Modifying config.xml to add new image resources - done!
KamalSalahs-iMac:BontiderSverige_V300 kamalsalah$ ionic cordova resources ios -i
[ERROR] Source image files were not found for the following platforms/types:
- ios/icon
Please review --help
the file info is:
Dimention 1024x1024
Colorspace: RGB
Alhpha channel: No
Filetype: png
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 2:06 am
@harshm90 wrote:
How can I pass the data of home(page 1) to ContactPage(page 3) along with DetailsPage(page 2) data?
lets say
HomePage has data of “UserId”
DetailsPage has data of “UserName” & “UserAddress” //this page does not have UserID
now how can i get the data of
“UserId” as well as “UserName & UserAddress” on ContactPage?
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 2:47 am
@Daris wrote:
Hi,
on a Starter template: sidemenu, I encounter problems with the “ion-menu” on old iOS 10.0.2 - Chrome v.71.0.3578.89. The sidemenu not rendered content (see attachment).
Ionic:
ionic (Ionic CLI) : 4.10.3
Ionic Framework : @ionic/angular 4.0.2
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.4.0
System:
NodeJS : v8.12.0
npm : 6.4.1
OS : Windows 10
Thanks for any suggestion!
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 3:06 am
@evripides wrote:
I am trying to use Geolocation but I get the below error
TypeError: Object(…) is not a function
at Geolocation.getCurrentPosition
Ionic Version 3.20.0
cordova-plugin-geolocation 4.0.1 “Geolocation”
my code
import { Geolocation } from ‘@ionic-native/geolocation/ngx’;
mylocation(){
this.geolocation.getCurrentPosition().then((resp) => {
this.lat = resp.coords.latitude;
this.longt =resp.coords.longitude;
}).catch((error) => {
console.log(‘Error getting location’, error);
});
}
any idea what I can do
Thank you
Posts: 1
Participants: 1
Read full topic
↧
↧
February 21, 2019, 3:16 am
@suresh9949 wrote:
I have creating pipe on ionic 4 and angular 7. when I importing pipe in app.module.ts its giving Template parse errors, but when i importing in home.module.ts its working fine that page only its not working another page. Can you give any suggestions regarding this.
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 3:57 am
@srivanigorthi wrote:
I am newbie and my requirement is to add streaming video in my application. As per the documents and tutorials I have gone through streaming-media plugin streams the video in full screen mode, Is there any option to customize the video play area size i.e., play video only in 50% of the screen or in some part of screen? And what the streaming types that are being supported by Ionic?
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 4:28 am
@tushargalfade wrote:
got error Error: connect ETIMEDOUT 52.222.136.168:443 while creating app by following command
ionic start IonicShoppingList blank
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 4:53 am
@zabka229 wrote:
Hi everyone,
Recently I have received an order for mobile application with 3 possible choices of technology: Ionic 4, React native and Flutter.
I had really good time in developing Ionic 3 applications so I would choose Ionic 4, but i created sample app and was a little bit disappointed in result.
It takes a little bit more than 2 seconds to show first page and it looks unprofessionally with this first gray screen and then after splash - white screen.
Do you have any advices how to improve this aspect?
PS. I used ionic build --prod and cordova with --prod flag.
Posts: 1
Participants: 1
Read full topic
↧
↧
February 21, 2019, 6:34 am
↧
February 21, 2019, 6:58 am
@bbarascou wrote:
Hello,
I have one page ‘details’ with 1 object “BT” and 4 tabs
<ion-header>
<ion-toolbar color="primary">
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>Bon travail {{BT.id}}</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-tabs>
<ion-tab-bar slot="bottom">
<ion-tab-button tab="infos">
<ion-icon name="information-circle"></ion-icon>
<ion-label>Informations</ion-label>
</ion-tab-button>
<ion-tab-button tab="temps">
<ion-icon name="construct"></ion-icon>
<ion-label>Matériel</ion-label>
</ion-tab-button>
<ion-tab-button tab="materiel">
<ion-icon name="time"></ion-icon>
<ion-label>Temps</ion-label>
</ion-tab-button>
<ion-tab-button tab="validate">
<ion-icon name="checkbox"></ion-icon>
<ion-label>Valider</ion-label>
</ion-tab-button>
</ion-tab-bar>
</ion-tabs>
</ion-content>
What is the best way to show/edit datas of my object “BT” from the differents tabs ?
Thank you for your help
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 7:27 am
@acarrasco wrote:
Hi there!
I don’t understant why in the conference app at the map.ts
file it is used AfterViewInit? Why don’t we use OnInit?
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 7:49 am
@samaybhavsar wrote:
I am working on a project which involves scanning of Bluetooth devices. Can someone tell me which plugin to use BLE or BluetoothLE ?
I tried using BluetoothLE.
Can someone explain me how to stopScan ? I understand that scanScan return Observable and my code looks like
this.bluetoothle.startScan({}).subscribe(data =>this.startScanSucess(data));
startScanSucess(obj) {
if(obj.status == "scanStarted") {
console.log("BluetoothLE is scanning for devices");
}
if(obj.status == "scanResult") {
if(obj.name) {
this.devices.push(obj);
}
}
}
stopScanning() {
this.bluetoothle.stopScan().then(()=>{},()=>{});
console.log("Stopped Scanning");
console.log(this.devices);
}
Now I need to call stopScan after an interval of say 5 seconds. This is what I tried but its not working. I am not getting the list of devices. And it gives me an error
ERROR TypeError: Cannot read property ‘then’ of undefined
at push…/src/app/tab1/tab1.page.ts.Tab1Page.stopScanning
Posts: 1
Participants: 1
Read full topic
↧
↧
February 21, 2019, 9:07 am
@pierrephilipdp wrote:
I am currently trying to POST data to an API and it seems that there is a problem with POST’ing an array within the JSON object. I am declaring the object as follows:
let data = {
"deliveryStreet": this.formGroup.get('shippingLineOne').value,
"deliveryBuilding": this.formGroup.get('shippingLineTwo').value,
"deliveryCity": this.formGroup.get('shippingCity').value,
"deliveryProvince": this.formGroup.get('shippingProvince').value,
"deliveryPostalCode": this.formGroup.get('shippingPostalCode').value,
"cardName": this.formGroup.get('cardholderName').value,
"cardNumber": this.formGroup.get('ccNum').value,
"cardExpiry": this.formGroup.get('ccExp').value,
"cardCvv": this.formGroup.get('cardCvv').value,
"orderItems": this.cart.cartItems
};
Where this.cart.cartItems is an array of objects. When I try and POST the data it would appear that there is malformation of the orderItems, I have tried using JSON.stringify on both the entire object and just the array itself with no effect. Does anyone have an idea why this nested array won’t POST to an endpoint?
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 9:18 am
@Kyrax80 wrote:
Hello, I wanna specify which Gradle version to use when building my Android App. Is there a way to do this?
Thanks.
Posts: 1
Participants: 1
Read full topic
↧
February 21, 2019, 9:23 am
@pramod-nair wrote:
One of our static security code analysis tool is flagging following iOS code for “Path Manipulation” vulnerability.
-
/cordova-plugin-ionic-webview/IONAssetHandler.m
-
NSData * data = [[NSData alloc] initWithContentsOfFile:startPath];
-
/CordovaLib/Classes/Public/CDVViewController.m
-
self.configParser = [[NSXMLParser alloc] initWithContentsOfURL:url];
-
/CordovaLib/Classes/Private/Plugins/CDVLocalStorage/CDVLocalStorage.m
-
BOOL ok = [appPlistDict writeToFile:appPlistPathatomically:YES];
-
/CordovaLib/Classes/Private/Plugins/CDVLocalStorage/CDVLocalStorage.m
-
NSMutableDictionary* appPlistDict = [NSMutableDictionary dictionaryWithContentsOfFile:appPlistPath];
…
-
BOOL ok = [appPlistDict writeToFile:appPlistPath atomically:YES];
PLEASE HELP TO MITIGATE THIS important issue.
Posts: 1
Participants: 1
Read full topic
↧