在eureka Pushrow中进行切换以隐藏特定行

时间:2018-09-29 21:01:49

标签: ios eureka-forms

我具有尤里卡形式的此功能:

   +++ Section("DADES COMANDA")

   <<< TableInlineRow<String>("segments"){ row in
    row.title = "PRODUCTE:"
    row.value = ">"
    row.options = ["Persianes", "Mosquiteres"]
    }

    <<< PushRow <String>() {row in
    row.title = "COLOR:"
    row.options = ["BLANC", "MARFIL", "999"]
    row.value = ""
    row.selectorTitle = ""
    row.value = ""

    $0.hidden = "$segments != 'Persianes'"
    $0.hidden = "$segments != 'Mosquiteres'"
}

我该如何选择$0.hidden = "$ segments! = 'Persianes'"$0.hidden = "$ segments! = 'Mosquiteres'"

谢谢。

1 个答案:

答案 0 :(得分:0)

假设Captures({0: Some("5\t\"Stanford Encyclopedia of Philosophy\"\t\"Product\""), "n_id": Some("5"), "n_label": Some("Stanford Encyclopedia of Philosophy"), "n_type": Some("Product")}) Captures({0: Some("6\t\"Spatial History Project\"\t\"Group\""), "n_id": Some("6"), "n_label": Some("Spatial History Project"), "n_type": Some("")}) Captures({0: Some("7\t\"Humanities Research Network\"\t\"Group\""), "n_id": Some("7"), "n_label": Some("Humanities Research Network"), "n_type": Some("Group")}) 代表$segments行,以这种方式应用SegmentedRow<String>

Condition.function