0
ラジオボタンとテキスト入力を挿入する方法イオンでのプロンプト警告2 テキスト入力またはラジオボタンでのみ機能します。ラジオボタンのラジオボタングループを追加して、1つのアラートプロンプトで1つのオプションとテキスト入力を選択したいと考えています。イオン2プロンプトの警告
私documentationによると
let prompt = this.alertCtrl.create({
title: 'Add Course',
message: "Enter Course Detailes",
inputs: [
{
name: 'id',
placeholder: 'Course ID'
},
{
name: 'img',
placeholder: 'Image url'
},
{
name: 'title',
placeholder: 'Title'
},
{
name: 'Details',
placeholder: 'Details'
},
{
type:'radio',
label:'something1',
value:'something1'
},
{
type:'radio',
label:'something2',
value:'something2'
}
],
buttons : [
{
text: "Cancel",
handler: data => {
console.log("cancel clicked");
}
},
{
text: "Save",
handler: data => {
console.log("search clicked");
}
}
]
});
prompt.present();
の可能性のある重複した[イオン:チェックボックスとテキスト入力と警告コントローラを表示] (https://stackoverflow.com/questions/45355758/ionic-showing-an-alert-controller-with-a-checkbox-and-text-input) – sebaferreras
ああ@sebaferrerasは二重が存在することを知らなかった –
Np np、私実物のみ私はその昨日の答えを追加したのでized – sebaferreras