1
Ionic2
とAngular2
を使用して、選択ボックスからオプション「その他」を選択すると職業を入力するオプションをユーザに与えたいと考えています。選択のionic2選択ボックスから他のオプションを選択した場合の入力フィールド
例:ここでは
コードは次のとおりです。
あなたはuserType
プロパティを使用し、その値が等しいときに入力を示すことができ
\t <ion-item>
\t \t <ion-label>Select Profession</ion-label>
\t \t <ion-select [(ngModel)]="userType">
\t \t \t <ion-option *ngFor="let ut of userTypeList" [value]="ut.value" [innerHTML]="ut.label"></ion-option>
\t \t </ion-select>
\t </ion-item>
ありがとうございます!出来た。 –
喜んで役立つ:) – sebaferreras