documentViewerField not working for CSV file

I am attempting to display a CSV file stored in CDT in the UI using the documentViewerField. Here is the code.

However, I just get a blank rectangle in the UI. Does the documentViewerField component not work for CSV files?

a!documentViewerField(
label: index(ri!variable, "documentName", {}),
document: index(ri!variable, "document", {}),
height: "TALL"
),

  Discussion posts and replies are publicly visible

Parents Reply Children