Skip to main content

Resource

This view allows you to display a resource by using the resource's declared display_view, edit_view or list_view.

JSON Format

{
"type": "resource",
"id": ...,
"type": ...,
"margin_left": ...,
"margin_right": ...,
"margin_top": ...,
"margin_bottom": ...,
"is_visible": ...,
"validation_message": ...,
"resource_id": ...,
"stat": ...,
"view_type": ...,
"create_if_empty": ...
}

Fields

FieldTypeRequiredDescription
create_if_emptyboolOptional. Defaults to false. Whether the app should automatically create an empty resource instance if the given stat's value is null.