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

NameTypeRequiredDescription
objectNamestringYesName of the object whose property for which you are rendering content
propertyNamestringYesName of the property for which you are rendering content
recordIdstringYesID of the record to whose content this belongs
valueanyNo (default="")Value to render (if any)
rendererstringNoRenderer to use (will default to calculating the renderer using getRendererForField())