2
material design specのスライディング/スワイプタブを実装したい、これをionic2で実装する方法、Ionic2にスライド/スワイプオプションがありますか?スワイプ/スライディングタブイオン性2
「いいえ」の場合、他のjqueryプラグインは使用できますか?
<ion-segment [(ngModel)]="query" (ionChange)="showdata()">
<ion-segment-button value="slide1">
TabTitle1
</ion-segment-button>
<ion-segment-button value="slide2">
TabTitle2
</ion-segment-button>
<ion-segment-button value="slide3">
TabTitle3
</ion-segment-button>
</ion-segment>
<ion-slides (ionSlideDidChange)="slideChanged()">
<ion-slide>
Some Content
</ion-slide>
<ion-slide>
Some Content
</ion-slide>
<ion-slide>
Some Content
</ion-slide>
</ion-slides>
活字体コード
:ここfile.Ts
import {Component} from '@angular/core'
import {HomePage} from '../home-page/home-page';
import {AboutPage} from '../about-page/about-page';
import {ContactPage} from '../contact-page/contact-page';
import {LabPage} from '../lab-page/lab-page';
import {SchoolPage} from '../school-page/school-page';
import {StudentPage} from '../student-page/student-page';
import {playPage} from '../play-page/play-page';
@Component({
templateUrl: 'build/pages/tabs/tabs.html'
})
export class TabsPage {
constructor() {
// this tells the tabs component which Pages
// should be each tab's root Page
this.tab1Root = HomePage;
this.tab2Root = AboutPage;
this.tab3Root = ContactPage;
this.tab4Root = LabPage;
this.tab5Root = SchoolPage;
this.tab6Root = StudentPage;
this.tab7Root = PlayPage;
}
}
この機能は実装が非常に困難に聞こえるが、それはイオンチームに上昇していると、それは(これはしかし変わること)ベータ12のリリースで追加されているためにダウンしています。ここにGitHubの機能リクエストがあります。https://github.com/driftyco/ionic/issues/5101 –
あなたのansに感謝します。他のjqueryプラグインもありますか? – sridharan
ごめんなさいごめんなさい –