saagie / sdk

Saagie 📦 SDK for Technologies
https://www.saagie.com/
Apache License 2.0
2 stars 5 forks source link

[SDKCLI-42] Feature dependsOn value. #68

Open yoannfleurydev opened 4 years ago

yoannfleurydev commented 4 years ago

At the moment, the dependsOn key on a feature only requires a field to be filled. But what if the feature could appear on a given value?

Take a Select for example, with options Option 1 and Option 2.

    - type: SELECT
      name: dataset
      label: Dataset
      required: true
      options:
        - id: opt1
          value: Option 1
        - id: opt2
          value: Option 2
    - type: TEXT
      name: username
      label: Username
      dependsOn:
        - dataset.opt1
    - type: TEXT
      name: login
      label: Login
      dependsOn:
        - dataset.opt2

Here, the username input should appear only when opt1 Option 1 is selected and login when opt2 Option 2 is selected.

github-actions[bot] commented 4 years ago

:+1: JIRA Issue created : [SDKCLI-42]