renderField()
Overview
public string function renderField(
required string objectName
, required string propertyName
, required string recordId
, any value = ""
, string renderer
)
Renders a field in the context of an admin data view
Arguments
Name | Type | Required | Description |
---|---|---|---|
objectName | string | Yes | Name of the object whose property for which you are rendering content |
propertyName | string | Yes | Name of the property for which you are rendering content |
recordId | string | Yes | ID of the record to whose content this belongs |
value | any | No (default="") | Value to render (if any) |
renderer | string | No | Renderer to use (will default to calculating the renderer using getRendererForField()) |