Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions e2e/kots-release-install-v3/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -545,3 +545,35 @@ spec:
---

This line contains a <u>custom underline</u> using raw HTML.

- name: conditional-group-settings
title: Conditional Group Settings
items:
- name: enable_advanced_features
title: Enable Advanced Features
type: bool
default: "0"
help_text: "Toggle this to show/hide the Advanced Features tab"

- name: advanced-features
title: Advanced Features
when: '{{repl ConfigOptionEquals "enable_advanced_features" "1"}}'
description: |
This group demonstrates conditional group display using the `when` property.

This tab only appears when "Enable Advanced Features" is checked in the "Conditional Group Settings" tab.
items:
- name: advanced_text_option
title: Advanced Text Option
type: text
help_text: "This field is only visible when advanced features are enabled"

- name: advanced_textarea_option
title: Advanced Textarea Option
type: textarea
help_text: "This textarea is only visible when advanced features are enabled"

- name: advanced_checkbox_option
title: Advanced Checkbox Option
type: bool
help_text: "This checkbox is only visible when advanced features are enabled"
1 change: 1 addition & 0 deletions web/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export interface AppConfigGroup {
name: string;
title: string;
description?: string;
when?: string;
items: AppConfigItem[];
}

Expand Down
Loading