Skip to content

Commit

Permalink
docs: LSDV-5343: Docs for visibleWhen; remove FF_DEV_1372 (#4443)
Browse files Browse the repository at this point in the history
* [submodules] Build static heartexlabs/label-studio-frontend

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5379017878

* docs: LSF Update

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5379017878

* [submodules] Build static heartexlabs/label-studio-frontend

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5379047192

* [submodules] Build static heartexlabs/label-studio-frontend

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5383223119

* [submodules] Build static heartexlabs/label-studio-frontend

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5383578965

* [submodules] Build static heartexlabs/label-studio-frontend

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5423103898

* [submodules] Build static heartexlabs/label-studio-frontend

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5423889083

* [submodules] Build static heartexlabs/label-studio-frontend

Workflow run: https://github.com/heartexlabs/label-studio/actions/runs/5449814349

* [submodules] Build static HumanSignal/label-studio-frontend

Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/5880811896

* [submodules] Build static HumanSignal/label-studio-frontend

Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/5890902627

* docs: LSF Update

Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/5890902627

---------

Co-authored-by: hlomzik <[email protected]>
Co-authored-by: hlomzik <[email protected]>
  • Loading branch information
3 people authored Aug 17, 2023
1 parent d7b6bbc commit a98ce86
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions docs/source/tags/choices.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ The `Choices` tag can be used with any data types.
| [showInline] | <code>boolean</code> | <code>false</code> | Show choices in the same visual line |
| [required] | <code>boolean</code> | <code>false</code> | Validate whether a choice has been selected |
| [requiredMessage] | <code>string</code> | | Show a message if validation fails |
| [visibleWhen] | <code>region-selected</code> \| <code>choice-selected</code> \| <code>no-region-selected</code> | | Control visibility of the choices. |
| [visibleWhen] | <code>region-selected</code> \| <code>no-region-selected</code> \| <code>choice-selected</code> \| <code>choice-unselected</code> | | Control visibility of the choices. Can also be used with `when*` attributes below to narrow down visibility |
| [whenTagName] | <code>string</code> | | Use with visibleWhen. Narrow down visibility by name of the tag. For regions, use the name of the object tag, for choices, use the name of the choices tag |
| [whenLabelValue] | <code>string</code> | | Narrow down visibility by label value |
| [whenChoiceValue] | <code>string</code> | | Narrow down visibility by choice value |
| [whenLabelValue] | <code>string</code> | | Use with visibleWhen="region-selected". Narrow down visibility by label value |
| [whenChoiceValue] | <code>string</code> | | Use with visibleWhen ("choice-selected" or "choice-unselected") and whenTagName, both are required. Narrow down visibility by choice value |
| [perRegion] | <code>boolean</code> | | Use this tag to select a choice for a specific region instead of the entire task |
| [perItem] | <code>boolean</code> | | Use this tag to select a choice for a specific item inside the object instead of the whole object[^1] |
| [value] | <code>string</code> | | Task data field containing a list of dynamically loaded choices (see example below)[^2] |
Expand Down
8 changes: 4 additions & 4 deletions docs/source/tags/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ The `View` element is used to configure the display of blocks, similar to the di
| display | <code>block</code> \| <code>inline</code> | |
| [style] | <code>string</code> | CSS style string |
| [className] | <code>string</code> | Class name of the CSS style to apply. Use with the Style tag |
| [visibleWhen] | <code>region-selected</code> \| <code>choice-selected</code> \| <code>no-region-selected</code> | Show the contents of a view when condition is true |
| [whenTagName] | <code>string</code> | Narrow down visibility by tag name. For regions, use the name of the object tag, for choices, use the name of the choices tag. |
| [whenLabelValue] | <code>string</code> | Narrow down visibility by label value |
| [whenChoiceValue] | <code>string</code> | Narrow down visibility by choice value |
| [visibleWhen] | <code>region-selected</code> \| <code>choice-selected</code> \| <code>no-region-selected</code> \| <code>choice-unselected</code> | Control visibility of the content. Can also be used with `when*` attributes below to narrow down visibility |
| [whenTagName] | <code>string</code> | Use with visibleWhen. Narrow down visibility by tag name. For regions, use the name of the object tag, for choices, use the name of the choices tag |
| [whenLabelValue] | <code>string</code> | Use with visibleWhen="region-selected". Narrow down visibility by label value |
| [whenChoiceValue] | <code>string</code> | Use with visibleWhen ("choice-selected" or "choice-unselected") and whenTagName, both are required. Narrow down visibility by choice value |

### Example

Expand Down
2 changes: 1 addition & 1 deletion label_studio/frontend/dist/lsf/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion label_studio/frontend/dist/lsf/js/main.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions label_studio/frontend/dist/lsf/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"message": "chore: OPTIC-4: Remove any profanity from sample data",
"commit": "41ae765ba05e11414ff262f7aa6454c186ac4145",
"message": "docs: LSDV-5343: Docs for visibleWhen; remove FF_DEV_1372",
"commit": "36b729ab5cab84fb75fa897b75d7277cb49262da",
"branch": "master",
"date": "2023/08/16 21:50:21"
"date": "2023/08/17 13:30:10"
}

0 comments on commit a98ce86

Please sign in to comment.