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>