mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
docs: move early access badge in dynamic parameters doc (#18009)
and md fix this is basically a `hotfix` Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
This commit is contained in:
co-authored by
EdwardAngert
parent
8f44603d8a
commit
db806ae243
@@ -392,13 +392,13 @@ parameters in one of two ways:
|
||||
|
||||
Or set the [environment variable](../../setup/index.md), `CODER_EXPERIMENTS=auto-fill-parameters`
|
||||
|
||||
## Dynamic Parameters
|
||||
## Dynamic Parameters (Early Access)
|
||||
|
||||
Dynamic Parameters enhances Coder's existing parameter system with real-time validation,
|
||||
conditional parameter behavior, and richer input types.
|
||||
This feature allows template authors to create more interactive and responsive workspace creation experiences.
|
||||
|
||||
### Enable Dynamic Parameters (Early Access)
|
||||
### Enable Dynamic Parameters
|
||||
|
||||
To use Dynamic Parameters, enable the experiment flag or set the environment variable.
|
||||
|
||||
@@ -488,7 +488,7 @@ The "Options" column in the table below indicates whether the form type requires
|
||||
|
||||
### Form Type Examples
|
||||
|
||||
<details><summary>`checkbox`: A single checkbox for boolean values</summary>
|
||||
<details><summary>checkbox: A single checkbox for boolean values</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "enable_gpu" {
|
||||
@@ -502,7 +502,7 @@ data "coder_parameter" "enable_gpu" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`dropdown`: A searchable select menu for choosing a single option from a list</summary>
|
||||
<details><summary>dropdown: A searchable select menu for choosing a single option from a list</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "region" {
|
||||
@@ -525,7 +525,7 @@ data "coder_parameter" "region" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`input`: A standard text input field</summary>
|
||||
<details><summary>input: A standard text input field</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "custom_domain" {
|
||||
@@ -539,7 +539,7 @@ data "coder_parameter" "custom_domain" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`key-value`: Input for entering key-value pairs</summary>
|
||||
<details><summary>key-value: Input for entering key-value pairs</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "environment_vars" {
|
||||
@@ -553,7 +553,7 @@ data "coder_parameter" "environment_vars" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`multi-select`: Checkboxes for selecting multiple options from a list</summary>
|
||||
<details><summary>multi-select: Checkboxes for selecting multiple options from a list</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "tools" {
|
||||
@@ -580,7 +580,7 @@ data "coder_parameter" "tools" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`password`: A text input that masks sensitive information</summary>
|
||||
<details><summary>password: A text input that masks sensitive information</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "api_key" {
|
||||
@@ -594,7 +594,7 @@ data "coder_parameter" "api_key" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`radio`: Radio buttons for selecting a single option with high visibility</summary>
|
||||
<details><summary>radio: Radio buttons for selecting a single option with high visibility</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "environment" {
|
||||
@@ -617,7 +617,7 @@ data "coder_parameter" "environment" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`slider`: A slider for selecting numeric values within a range</summary>
|
||||
<details><summary>slider: A slider for selecting numeric values within a range</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "cpu_cores" {
|
||||
@@ -635,7 +635,7 @@ data "coder_parameter" "cpu_cores" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`switch`: A toggle switch for boolean values</summary>
|
||||
<details><summary>switch: A toggle switch for boolean values</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "advanced_mode" {
|
||||
@@ -649,7 +649,7 @@ data "coder_parameter" "advanced_mode" {
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>`textarea`: A multi-line text input field for longer content</summary>
|
||||
<details><summary>textarea: A multi-line text input field for longer content</summary>
|
||||
|
||||
```tf
|
||||
data "coder_parameter" "init_script" {
|
||||
|
||||
Reference in New Issue
Block a user