- Source:
Methods
(static) _updateFileActionIcon($tr, hasUserShares, hasLinkShare) → {bool}
Update the file action share icon for the given file
Parameters:
Name | Type | Description |
---|---|---|
$tr |
file element of the file to update | |
hasUserShares |
bool | true if a user share exists |
hasLinkShare |
bool | true if a link share exists |
- Source:
Returns:
true if the icon was set, false otherwise
- Type
- bool
(static) _updateFileListDataAttributes()
Update file list data attributes
- Source:
(static) attach(fileList)
Initialize the sharing plugin.
Registers the "Share" file action and adds additional
DOM attributes for the sharing file info.
Parameters:
Name | Type | Description |
---|---|---|
fileList |
OCA.Files.FileList | file list to be extended |
- Source:
(static) formatRecipients(recipients, count) → {String}
Formats a recipients array to be displayed.
The first four recipients will be shown and the
other ones will be shown as "+x" where "x" is the number of
remaining recipients.
Parameters:
Name | Type | Description |
---|---|---|
recipients |
Array.<String> | recipients array |
count |
int | optional total recipients count (in case the array was shortened) |
- Source:
Returns:
formatted recipients display text
- Type
- String