Constructor
new ve.FileExplorer()
Extends
Members
v :string
Returns the present file path.
- Accessor of ve.FileExplorer
Type:
-
string
v
Sets the present file path.
- Accessor of ve.FileExplorer
clipboard :Array.<string>
Contains all file paths currently in the clipboard.
- Field of: ve.FileExplorer
Type:
-
Array.<string>
from_binding
Internal .from_binding setter for handling .options.from_binding. Accepts a string literal that is then parsed to a variable reference.
.to_binding counterparts are manually handled child-side.
- Accessor of: ve.Component
- Overrides:
- Source:
limit
Tests the current this.limit by calling this.limit_function(this.v, this). Otherwise resolves to true if no .options.limit is set.
- Accessor of: ve.Component
- Overrides:
- Source:
name
Returns the visual name of the present ve.Component,
- Accessor of: ve.Component
- Overrides:
- Source:
selected :Array.<string>
Contains all currently selected file paths.
- Field of: ve.FileExplorer
Type:
-
Array.<string>
Methods
#copy(arg0_file_paths, arg1_file_path, arg2_function)
Copies specific file paths in arg0_file_paths to arg1_file_path.
- Method of: ve.FileExplorer
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_paths |
Array.<string>
|
The file paths to copy. |
arg1_file_path |
string
|
Where to copy the file paths to. |
arg2_function |
function
|
Callback function once the copy operation is finished. |
#delete(arg0_file_paths, arg1_function)
Deletes selected file paths in arg0_file_paths recursively with error logging.
- Method of: ve.FileExplorer
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_paths |
Array.<string>
|
The file paths to delete. |
arg1_function |
function
|
Callback function once the delete operation is finished. |
#getFiles(arg0_file_paths) → {Array.<string>}
Returns all the subpaths in the set of file/folder paths given.
- Method of: ve.FileExplorer
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_paths |
Array.<string>
|
Returns:
- Type:
-
Array.<string>
#move(arg0_file_paths, arg1_file_path, arg2_function)
Moves files from selected file paths in arg0_file_paths to arg1_file_path.
- Method of: ve.FileExplorer
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_paths |
Array.<string>
|
The file paths to move. |
arg1_file_path |
string
|
The folder path to move to. |
arg2_function |
function
|
Callback function once the move operation is finished. |
#rename(arg0_file_path, arg1_function)
Creates a modal for renaming a specific file path in arg0_file_path.
- Method of: ve.FileExplorer
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_path |
string
|
The file path to rename. |
arg1_function |
function
|
Callback function after the rename operation is complete. |
clearClipboard()
Clears the present keyboard.
- Method of ve.FileExplorer
deselect(arg0_file_path, arg1_optionsopt)
Deselects a specific file path and removes it from this.selected.
- Method of ve.FileExplorer
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_file_path |
string
|
||||||||||||
arg1_options |
Object
|
<optional> |
|
Returns:
string[]
deselectAll()
Deselects all file paths, clearing this.selected.
- Method of ve.FileExplorer
fireSelectToggle(v, e)
Fires a select toggle element for the full path.
- Method of: ve.FileExplorer
Parameters:
| Name | Type | Description |
|---|---|---|
v |
string
|
|
e |
ve.FileExplorer
|
refresh()
Refreshes the current file explorer path, rerendering the display for folders and files within the Component.
- Method of: ve.FileExplorer
select(arg0_file_path)
Selects a specific file path, then returns this.selected.
- Method of ve.FileExplorer
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_file_path |
string
|
Returns:
string[]
selectAll()
Selects all file paths in the current folder being navigated.
- Method of ve.FileExplorer
setClipboard()
Sets the clipboard to the current selection.
- Method of ve.FileExplorer
addComponent()
Adds the current component to this.parent_el should it exist.
- Method of: ve.Component
- Overrides:
- Source:
bind(arg0_container_el)
Manually binds/mounts the present ve.Component into the visual DOM.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_container_el |
HTMLElement
|
fireFromBinding()
Pseudo-setter from binding. Fires only upon program-driven changes to .v directly, which means that this has to be monitored manually component-side in set v(). This should always come last in set v().
- Method of: ve.Component
- Overrides:
- Source:
fireToBinding()
Pseudo-setter to binding. Fires only upon user-driven changes, which means that this has to be monitored manually component-side.
- Method of: ve.Component
- Overrides:
- Source:
removeComponent()
Removes the current component from this.parent_el should it exist.
- Method of: ve.Component
- Overrides:
- Source:
setOwner(arg0_value, arg1_owner_array)
Sets the root parent and ownership tree. Influences this.parent_el, this.owner, this.owners.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_value |
||
arg1_owner_array |
setValueFromObject(arg0_object, arg1_object)
Destructures Object values and transfers them into the .v instance fields of each Vercengen component.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_object |
Object
|
The Vercengen object to transfer to. |
arg1_object |
Object
|
The other object to transfer from. |