Module: searchExpression_js

Members

(inner, constant) searchTagsNoOp :Array

Type:
  • Array
Source:

(inner, constant) searchTagsTimestamp :Array

Type:
  • Array
Source:

Methods

(inner) clearSearchTimer() → {void}

Removes the search timer
Source:
Returns:
Type
void

(inner) createBaseSearchExpression(base, value) → {string}

Creates a mpd filter expression consisting of base and any tag search
Parameters:
Name Type Description
base string the base path
value string value to search in any tag
Source:
Returns:
the mpd search expression
Type
string

(inner) createSearchCrumb(filter, op, value) → {HTMLElement}

Creates a search crumb element
Parameters:
Name Type Description
filter string the tag
op string search operator
value string filter value
Source:
Returns:
search crumb element
Type
HTMLElement

(inner) createSearchCrumbs(searchStr, searchEl, crumbEl) → {void}

Creates the search breadcrumbs from a mpd search expression
Parameters:
Name Type Description
searchStr string the search expression
searchEl HTMLElement search input element
crumbEl HTMLElement element to add the crumbs
Source:
Returns:
Type
void

(inner) createSearchExpression(crumbsEl, tag, op, value) → {string}

Creates the MPD search expression from crumbs and parameters
Parameters:
Name Type Description
crumbsEl HTMLElement crumbs container element
tag string tag to search
op string search operator
value string value to search
Source:
Returns:
the search expression in parenthesis
Type
string

(inner) createSearchExpressionComponent(tag, op, value) → {string}

Creates a MPD search expression component
Parameters:
Name Type Description
tag string tag to search
op string search operator
value string value to search
Source:
Returns:
the search expression in parenthesis
Type
string

(inner) execSearchExpression(value) → {void}

Executes the search expression for the current displayed view
Parameters:
Name Type Description
value string search value
Source:
Returns:
Type
void

(inner) handleSearchExpression(appid) → {void}

Parses search expressions and update the ui for specified appid
Parameters:
Name Type Description
appid string the application id
Source:
Returns:
Type
void

(inner) initSearchExpression(appid) → {void}

Initializes advanced search elements for specified appid
Parameters:
Name Type Description
appid string the application id
Source:
Returns:
Type
void

(inner) parseExpression(expression) → {object}

Parses a mpd filter expression
Parameters:
Name Type Description
expression string mpd filter
Source:
Returns:
parsed expression elements or null on error
Type
object

(inner) selectSearchMatch(appid) → {void}

Toggles the state of the SearchMatch select, based on selected tag
Parameters:
Name Type Description
appid string the application id
Source:
Returns:
Type
void

(inner) setSearchExpressionPlaceholder(appid) → {void}

Sets the placeholder string for the search expression input
Parameters:
Name Type Description
appid string the application id
Source:
Returns:
Type
void

(inner) toggleSearchExpr(event) → {void}

Toggles the advanced search bar
Parameters:
Name Type Description
event Event Click event
Source:
Returns:
Type
void