.Bnum.FileList($el, optionsopt)

Bnum for Entities and Workspaces file list.

new FileList($el, optionsopt)

Parameters:
Name Type Attributes Description
$el container element with existing markup for the .files-controls and a table
options <optional>
map of options, see other parameters
Properties
Name Type Attributes Description
entities boolean <optional>
true to return entities folders false to return workspaces folders Defaults to true.

Extends

  • OCA.Files.FileList

Members

_entities

Whether the list shows the files shared with the user (true) or the files that the user shared with others (false).

Methods

getDirectoryPermissions()

Returns the directory permissions
Returns:
- permission value as integer

setSharedWithUser(state)

Set whether the list should contain outgoing shares or incoming shares.
Parameters:
Name Type Description
state true for incoming shares, false otherwise