// Using dependent for runtime table context
const displayFields = FieldListColumn({
label: 'Display Fields',
dependent: 'referenced_table',
default: fieldList<'sc_cat_item'>(['name', 'description', 'cost']),
})
// Using attributes.table for static table context
const staticFields = FieldListColumn({
label: 'Forecast Fields',
attributes: { table: 'sn_sales_forecast_header' },
})
A Column for a field list type field. Contains a list of field names from a specified table, supporting dot-walk notation. Accepts string values (use fieldList() helper for arrays).
Table context must be provided via one of:
dependent- references another column that provides the table at runtimeattributes.table- specifies the table statically