Properties:
Name | Type | Description |
---|---|---|
directoriesFirst |
bool | (default: |
filesystem |
html.Filesystem | (default: |
filter |
function | A filtering function. By default, hidden files are filtered out. |
loading |
bool | [readonly] |
path |
string | (default: |
sorter |
function | A sorting function. By default, items are sorted in ascending case-insensitive order by their name. |
Extends
Methods
-
Creates a filtering function for the
filter
property.Name Type Description withDirectories
bool Whether to include directories.
withFiles
bool Whether to include files.
withHidden
bool Whether to include hidden entries (name starting with
.
).Returns:
Type Description function The filtering function. -
Creates a sorting function for the
sorter
property.Name Type Description role
string The sort role name.
ascending
bool Whether to sort in ascending order.
Returns:
Type Description function The sorting function.