Skip to main content
SurfaceComponentProps
Supported props for the SurfaceComponent.
NameTypeDescription
data?anyOptional dataset to load.
dataType?stringID of the format that data or the data retrieved from url is expected to be in. Defaults to JSON_DATATYPE.
modelOptions?ModelOptionsOptions for the underlying model.
renderOptions?RenderOptionsParameters to configure the underlying surface.
surfaceId?stringID of the surface to attach to. This is optional; Visually JS will use the default surface ID if you do not
provide this. For apps where there's only one surface there is no need to provide this.
url?stringOptional url for a dataset to load.
viewOptions?ViewOptionsMapping of model object types to components and behaviour