Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix rtl functionalities in slides when attribute (dir=“rtl”) added to ion-slides. - e2e test added: ‘slides/test/rtl’
- Loading branch information
1 parent
bee75f7
commit e90d692
Showing
3 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Component, ViewChild, NgModule } from '@angular/core'; | ||
import { IonicApp, IonicModule, Slides } from '../../../../../ionic-angular'; | ||
|
||
|
||
@Component({ | ||
templateUrl: 'main.html' | ||
}) | ||
export class E2EPage { | ||
@ViewChild(Slides) slider: Slides; | ||
|
||
onSlideWillChange(s: Slides) { | ||
console.log(`onSlideWillChange: ${s}`); | ||
} | ||
|
||
onSlideDidChange(s: Slides) { | ||
console.log(`onSlideDidChange: ${s}`); | ||
} | ||
|
||
onSlideDrag(s: Slides) { | ||
console.log(`onSlideDrag: ${s}`); | ||
} | ||
|
||
} | ||
|
||
@Component({ | ||
template: '<ion-nav [root]="root"></ion-nav>' | ||
}) | ||
export class E2EApp { | ||
root = E2EPage; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [ | ||
E2EApp, | ||
E2EPage | ||
], | ||
imports: [ | ||
IonicModule.forRoot(E2EApp) | ||
], | ||
bootstrap: [IonicApp], | ||
entryComponents: [ | ||
E2EApp, | ||
E2EPage | ||
] | ||
}) | ||
export class AppModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<ion-slides style="background: black" | ||
(ionSlideWillChange)="onSlideWillChange($event)" | ||
(ionSlideDidChange)="onSlideDidChange($event)" | ||
(ionSlideDrag)="onSlideDrag($event)" | ||
pager="true" | ||
dir="rtl" | ||
effect="slide"> | ||
|
||
<ion-slide style="background: red; color: white;"> | ||
<h1>شريحة ١</h1> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
AhmadAmri
Author
Contributor
|
||
</ion-slide> | ||
|
||
<ion-slide style="background: white; color: blue;"> | ||
<h1>شريحة ٢</h1> | ||
</ion-slide> | ||
|
||
<ion-slide style="background: blue; color: white;"> | ||
<h1>شريحة ٣</h1> | ||
</ion-slide> | ||
|
||
</ion-slides> |
@AhmadAmri, it would be good to add English translations to the texts so it's easier to understand for the rest of us.