<View> tags get converted to <div> tags in the final HTML
className: Use a CSS class mentioned in styles.css in the game bundlestyle: Specify inline CSS for this tagonTapEvent: Custom Event Passing to Game Bundle when User Click/Tap on the corresponding overlay Component<Text> tags get converted to <p> tags in the final HTML
className: Use a CSS class mentioned in styles.css in the game bundlestyle: Specify inline CSS for this tagcontent: Text content to render<Button> tags get converted to <button> tags in the final HTML
className: Use a CSS class mentioned in styles.css in the game bundlestyle: Specify inline CSS for this tagcontent: Text content to renderaction: Context action triggered on press<Image> tags get converted to <img> tags in the final HTML
className: Use a CSS class mentioned in styles.css in the game bundlestyle: Specify inline CSS for this tagcontent: Text content to rendersrc: Source of the image. This must reference either an image present in the game bundle, or use an FBInstant key to resolve the image to a player’s profile picture.The for-loop statement for the Overlay syntax.
source: The data source to use for iteration. This can either be an FBInstant key that resolves to connected players or context participants, or it can be a list supplied by the game.itemName: The string here would be used to reference each individual item inside the iterationsortKey: The key on which to sort the items in the list, if it needs to be sorted. This key can reference player data that is stored using FBInstant.player.setDataorder: Either ASC for ascending or DESC for descendinglimit: A number to specify how many items to consider for this iteration. The limit will apply after sortingstartIndex: A number to specify what index to start the list at if using {{itemname.index}}. Defaults to 1 if unspecifiedscrollStyle: Where the scroll should start at, if there is overflow. Either top, bottom, or center to center on the item in the scrollIndex. Defaults behavior is topscrollIndex: A number to specify the index of the initial data from the list to center on if scrollStyle is center. Must be provided if scrollStyle is centerSurround a block of components with an If component tag in order to conditionally render those components if the condition specified with the child Condition or ConditionGroup tag evaluates to true.
Follows an If component tag as a sibling tag, same rules as the If component tag. This gets evaluated if the preceding condition for If condition tag evaluates to false.
Final component tag in the If-ElseIf chain. It evaluates if the preceding If/ElseIf tags evaluate to false.
Component inside If statement to specify the conditions.
lhs: The left hand side data to compare. This can be supplied as a key FBInstant.player.data.score or supplied from the map of key-value pairs provided when creating the overlay viewoperator: One of the operator of the following
EQUALSNOT_EQUALSGREATER_THANNOT_GREATER_THANLESS_THANNOT_LESS_THANINNOT_INrhs: The right hand side data to compare. This can be supplied as a key FBInstant.player.data.score or supplied from the map of key-value pairs provided when creating the overlay view.Combine multiple Condition components under a logical operator.
operator: One of the following
ANDOR