Class: ContentDocumentTable

ContentDocumentTable

A generic table to show shared documents from a Salesforce Files library.
Source:
Example
<c-content-document-table library="Documents" record-id={recordid}></c-content-document-table>

Extends

  • LightningElement

Members

cardIcon :string

If show card option is active,, the card icon is displayed in the header before the card title. It should contain the SLDS name of the icon. Specify the name in the format 'standard:case' where 'standard' is the category and 'case' the icon to be displayed.
Type:
  • string
Default Value:
  • ''
Source:
Example
'standard:case'

cardTitle :string

If show card option is active, The card title can include text and is displayed in the header above the table.
Type:
  • string
Default Value:
  • 'Document Table'
Source:

folder :string

Folder name within Files library.
Type:
  • string
Source:

library :string

Files library name.
Type:
  • string
Default Value:
  • 'Documents'
Source:

recordId :string

If the component is used on a lightning record page, the page sets the property to the id of the current record.
Type:
  • string
Source:

showCard :boolean

If present, the table is wrapped in a lightning card to fit better into the overall page layout.
Type:
  • boolean
Default Value:
  • false
Source:

showDeleteAction :boolean

If present, the last column contains a delete file action.
Type:
  • boolean
Default Value:
  • false
Source:

showDownloadAction :boolean

If present, the last column contains a download file action.
Type:
  • boolean
Default Value:
  • false
Source:

showViewAction :boolean

If present, the last column contains a view file action.
Type:
  • boolean
Default Value:
  • false
Source: