Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228535 articles
Browse latest View live

How to let a button next to a text?

$
0
0

FABs are not suitable for this use case, do read about them FABs

Here is what you should do:

<ion-list>
   <ion-item *ngFor="let service of services">
      <h2>{{service.name}}</h2>
      <button ion-button color="danger" item-right><ion-icon name="trash"></ion-icon></button>
      <button ion-button color="secondary" item-right><ion-icon name="create"></ion-icon></button>
   </ion-item>
</ion-list>

Modal return object and object data show in html

$
0
0

It's good that you've shared your code and screen shots, but you need to describe your question in more detail, it's not very clear right now. Tell us exactly what are you trying to achieve, what have you tried till now to do that, what is the result and what error if any you are experiencing etc.

Help needed: A "solved" problem with end tags

$
0
0

Thank you very much for pointing out this mistake! I was blind and didn't see it.

Error: exporting my App from Creator

I am getting difficult to integrate calendar and add event

$
0
0

thanks for your big reply, rather giving small solution.

I cant parse json ajax data

Item key not working with swipe and ng-for

$
0
0

SOLVED!

<ion-content>
    <ion-list>
        <ion-item-sliding *ngFor="let chat of chats | async" (click)="openChat(chat.$key)">
             <ion-item>
                <ion-avatar item-left>
                        <img *ngIf="!(chat.info | async).sPicture" src="assets/images/default.jpg">
                        <img *ngIf="(chat.info | async).sPicture" src="{{(chat.info | async).sPicture}}">
                </ion-avatar>
                <span>{{(chat.info | async).sDisplayName}}</span>
            </ion-item>

                <ion-item-options side="right">
                    <button ion-button color="danger" (click)="deleteChat(chat.$key)">Delete</button>
                </ion-item-options>

        </ion-item-sliding>
    </ion-list>
</ion-content>

I can not install local Notification and Cordova Toast plugin

$
0
0

Hello,
these are my ionic info:
global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1
Gulp CLI         : CLI version 3.9.1 Local version 3.9.1
Ionic CLI        : 3.4.0

local packages:

@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-gulp    : 1.0.1
@ionic/cli-plugin-ionic1  : 2.0.0
Cordova Platforms         : android 6.2.3
Ionic Framework           : ionic1 1.3.3

System:

Node       : v8.1.0
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

I'm studying a master as a full stack web developer, and in my course forum I was advised to delete the package.locks.json file and then install the plugins.

Doing so, only the Toast Plugin installation has been successful, local notification makes this error:

cordova plugin add de.appplant.cordova.plugin.local-notification --save
:heavy_multiplication_x: Running command - failed!

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova plugin add de.appplant.cordova.plugin.local-notification --save (exit
code 1):

    Installing "de.appplant.cordova.plugin.local-notification" for android
    Plugin dependency "cordova-plugin-device@1.1.4" already fetched, using that version.
    Dependent plugin "cordova-plugin-device" already installed on android.
    Failed to install 'de.appplant.cordova.plugin.local-notification': Error
    at C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:205:33
    at _rejected
    (C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:864:24)
    at
    C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:890:30
    at Promise.when
    (C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch
    (C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:808:41)
    at
    C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:624:44
    at runSingle
    (C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:137:13)
    at flush
    (C:\Users\Aurora\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)
    at process._tickCallback (internal/process/next_tick.js:161:9)
    Error: Failed to fetch plugin cordova-plugin-app-event via registry.
    Probably this is either a connection problem, or plugin spec is incorrect.
    Check your connection and plugin name/version/URL.
    Failed to get absolute path to installed module

Location is not being sent when app is closed. Can anyone point out what i am missing?

$
0
0

The Background Geolocation Plugin only works when your is running in foreground or background. It doesn't work when the app is closed.

Sending the user's Geolocation every x minutes (even when the app is closed) won't work.
You could take a look at geofences, maybe that already helps to meet your requirements. Geofences will be checked even when the app is closed.

How to represent json object in csv format

$
0
0

I have JSON object,and i want to represent it in CSV file..
I have used this json object and stored it in a list and display the data..now I want to use the same and show it in CSV file..
any help in this regard would be appreciated..

Thanks,,

Geo in ionic

Push Plugin for ANDROID not working in prod mode, but works in dev mode

$
0
0

That was what I was getting at - and beat me to it :wink: The error comes before deviceready :wink:

Ionic delete images from php server

$
0
0

Then ou have to submit an identifier of the images (id, filename, whatever is unique) to the server via an API, and in this API then use the submitted identifier to delete the picture. Pure backend work.

Dropdown not dismissed on back pressed

$
0
0

So you want that the dropdown (what element are we talking about?) is dismissed when someone tabs the Android back button, correct? If so: Implement a handler for the back button, emit an event (if there not even is already one), handle the event by dismissing the dropdown.

When I click on the swipe button it also clicks on the parent item

$
0
0

HI! I have a list with some items. Each item has (click)="openChat(chat.$key) and a swipe item with (click)="deleteChat(chat.$key)

The problem is that when I click on the swipe button to call the deleteFunction it also calls the openChat option. Its like both items responds to the click event.

What am I doing wrong?
Thanks!

<ion-content>
    <ion-list>
        <ion-item-sliding *ngFor="let chat of chats | async" (click)="openChat(chat.$key)">
            <ion-item>
                <ion-avatar item-left>
                        <img *ngIf="!(chat.info | async).sPicture" src="assets/images/default.jpg">
                        <img *ngIf="(chat.info | async).sPicture" src="{{(chat.info | async).sPicture}}">
                </ion-avatar>
                <span>{{(chat.info | async).sDisplayName}}</span>
            </ion-item>

            <ion-item-options side="right">
                <button ion-button color="danger" (click)="deleteChat(chat.$key)">Delete</button>
            </ion-item-options>

        </ion-item-sliding>
    </ion-list>
</ion-content>

I am getting difficult to integrate calendar and add event

$
0
0

Canned replies for the win.
Why should we invest time trying to help you if you can't even make the code you posted readable.

I can not install local Notification and Cordova Toast plugin

$
0
0

Remove the platform and re-add it again.

Error: exporting my App from Creator

$
0
0

You are missing a cordova there for current CLI:
ionic cordova platform add android

Then use ionic cordova run android.

How to write data to a csv file in ionic 3

$
0
0

What do you want to do with the file, whatever format it may have?
Your variable names seem strange. If the list is a list of calls, the variable should be calls. Otherwise this is very confusing.

Ion-option - why is it so difficult to style

$
0
0

Have you even checked the docs before complaining in this manner ??

FYI, there is something called selecOptions through which you can pass a custom class to the interface the ion-select is using, this gives you the power to influence the ion-option too if you need to.

Viewing all 228535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>