Class: Navigation

OCA.Files.Navigation($el)

Navigation control for the files app sidebar.

Constructor

Parameters:
Name Type Description
$el element containing the navigation
Source:

Members

$currentContent

Currently selected container
Source:

$quickAccessListKey

Key for the quick-acces-list
Source:

_activeItem

Currently selected item in the list
Source:

Methods

_onClickItem()

Event handler for when clicking on an item.
Source:

_onClickMenuButton()

Event handler for clicking a button
Source:

_setupEvents()

Setup UI events
Source:

getActiveContainer()

Returns the container of the currently active app.
Source:
Returns:
app container

getActiveItem()

Returns the currently active item
Source:
Returns:
item ID

getCompareValue()

Sorting-Algorithm-Helper for QuickAccess This method allows easy access to the element which is sorted by.
Source:

(private) initialize($el)

Initializes the navigation from the given container
Parameters:
Name Type Description
$el element containing the navigation
Source:

itemExists()

Returns whether a given item exists
Source:

QuickSort()

Sorting-Algorithm for QuickAccess
Source:

quicksort_helper()

Sorting-Algorithm-Helper for QuickAccess
Source:

setActiveItem(string, array)

Switch the currently selected item, mark it as selected and make the content container visible, if any.
Parameters:
Name Type Description
string itemId id of the navigation item to select
array options "silent" to not trigger event
Source:

setInitialQuickaccessSettings()

Sort initially as setup of sidebar for QuickAccess
Source:

swap()

Sorting-Algorithm-Helper for QuickAccess This method allows easy swapping of elements.
Source: