Create a photo editing app using ionicv2 and the Adobe Creative SDK. I have successfully implemented a creative SDK.
After the CSDK successfully returns the URL of the edited file, I click on the page containing the segment along with the URL of the file.
The problem is on the second page, when I click on a segment, it does not switch. It will only switch if I click on the input inside the page.
I tried to do this without CSDK and it works without any problems.
My code is:
loadCamera(sourceType){ const options: CameraOptions = { quality: 100, destinationType: this.camera.DestinationType.DATA_URL, encodingType: this.camera.EncodingType.JPEG, mediaType: this.camera.MediaType.PICTURE, sourceType: sourceType } this.camera.getPicture(options).then((imageData) => {
Second page (contains segment component)
section: string; url: string; constructor(...) { this.url = navParams.get('url'); console.log(this.url);
Second page of HTML ( When I click on segment 2, it is not there, unless I click on the input inside segment 1 )
<ion-content class="secondpage-content"> <ion-segment class="secondpage-segment" [(ngModel)]="section" (ionChange)="onSegmentChanged($event)"> <ion-segment-button value="segment1" (ionSelect)="onSegmentSelected($event)"> Segment 1 </ion-segment-button> <ion-segment-button value="segment2" (ionSelect)="onSegmentSelected($event)"> Segment 2 </ion-segment-button> <ion-segment-button value="segment3" (ionSelect)="onSegmentSelected($event)"> Segment 3 </ion-segment-button> </ion-segment> <div [ngSwitch]="section"> <div *ngSwitchCase="'segment1'" > <ion-item> <ion-label floating>Input</ion-label> <ion-input type="text" formControlName="input_example"></ion-input> </ion-item> </div> <div *ngSwitchCase="'segment2'" > </div> <div *ngSwitchCase="'segment3'" > </div> </div> </ion-content>
In addition, console logs do not return any errors. Do you have any idea what is going on? I really think this is related to CSDK. Thanks you
angular ionic-framework ionic2 aviary adobecreativesdk
Redzwan latif
source share