-
Guide
Tags
API
What's new
tags
- Introduction
Objects
- Audio
- AudioPlus
- HyperText
- Image
- Paragraphs
- Text
- TimeSeries
Controls
- BrushLabels
- Choice
- Choices
- Ellipse
- EllipseLabels
- HyperTextLabels
- KeyPoint
- KeyPointLabels
- Label
- Labels
- List
- Pairwise
- ParagraphLabels
- Polygon
- PolygonLabels
- Ranker
- Rating
- Rectangle
- RectangleLabels
- Relation
- Relations
- Shortcut
- TextArea
- Taxonomy
- TimeSeriesLabels
- Filter
Visual
- Header
- Style
- Table
- View
View
View element. Itβs analogous to div element in html and can be used to visual configure display of blocks
Parameters
Param | Type | Description |
---|---|---|
display | block | inline |
|
[style] | string |
css style string |
[className] | string |
class name of the css style to apply |
[visibleWhen] | region-selected | choice-selected | no-region-selected |
show the contents of a view when condition is true |
[whenTagName] | string |
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] | string |
narrow down visibility by label value |
[whenChoiceValue] | string |
narrow down visibility by choice value |
Example
<View style="display: flex;">
<View style="flex: 50%">
<Header value="Facts:" />
<Text name="text" value="$fact" />
</View>
<View style="flex: 50%; margin-left: 1em">
<Header value="Enter your question:" />
<TextArea name="question" />
</View>
</View>