如何在ionic3中动态显示所选的收音机?

时间:2018-04-10 05:48:48

标签: ionic3

我必须显示收音机将被选中如果keyId将匹配然后显示选择但它不工作我正在调用一个功能选择和功能不打电话告诉我任何人如何调用功能与离子选择告诉我任何人如何在ionic3中做到这一点?



 checkedSelectedCategory(keyId) {
    //Used for show the checkbok will be true
    for(var i=0; i<this.adminCategoriesList.length;i++){
      if(this.adminCategoriesList[i].categoryKeyId == keyId) {
        return true;
      }
     }
  }	`
&#13;
<ion-select interface="popover">
<ion-option *ngFor="let category of adminCategoriesList" [value]="category" selected="checkedSelectedCategory(category.categoryKeyId)">
          {{category.categoriesDto.categoryName}}
   </ion-option>
</ion-select>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

你需要绑定所选的值,你现在只使用没有绑定的选择属性,这就是为什么函数没有被触发。

Sub mm()
    Dim iArea As Long

    With Worksheets("FC01.RPT")
        With .Range("A14", .Cells(.Rows.Count, 1).End(xlUp))
            .Cells(2, 1).Value = "Summe"
            .AutoFilter field:=1, Criteria1:="Summe*"
            With .Resize(.Rows.Count - 1).Offset(1).SpecialCells(xlCellTypeVisible) '.Offset(-1)
                For iArea = 1 To .Areas.Count - 1
                    With .Parent.Range(.Areas(iArea).Offset(1), .Areas(iArea + 1).Offset(-1))
                        Worksheets("Plan").Cells(Rows.Count, "D").End(xlUp).Offset(1).Value = WorksheetFunction.SumIf(.Cells, "Individual*", .Offset(, 3))
                    End With
                Next
            End With
            .Cells(2, 1).ClearContents
        End With
        .AutoFilterMode = False
    End With
End Sub