UI AlbumViewHeader element

Hierarchy (view full)

Constructors

Properties

UI __preDataSource __preSource __preSourceFiltered _canBeLongTouch _captureListeners _cleanFuncs _cleanUpCalled _contextMenu _contextMenuAddons _contextMenuHandler _controlTitle _dataSource _dataSourceListenFuncts _dataSourceOrig _dataSourcePromises _disabled _dockMenuItems _dockable _ds _frameIDs _frameMMIDs _gettingImagePending _hasSplitters _idleCallIDs _ignoreDefaultLookup _imageCtrl _isDock _isFiltered _isLongTouch _isresizable _lastKey? _lastMousePos _layoutChangeHandler? _listeners _localPromises _mbImageUrl _menuArray _mouseMoveHandler _mouseOutHandler _needsFullRecalculation? _originalHeight _originalWidth _parentView _pointerAtPos _promises _resizeStartX _resizeStartY _resizing _searchable _setFilteredSourceTm _statusBarPromises _statusBarSources _statusInfo _statusParams _tabIndex _timeoutIDs _touchDownTime _triedDownloadImage _triedImageFromMB _triedImageFromRelease _triedImageFromReleaseGroup _triedLocalImage _triedWikiImage activatedHandler addArtworkRules artworkExactSizeClass artworkSizeClass bigHeader biggerHeaderHeight canBeUsedAsSource canvas? closediv? container contextMenuPromise currentMode debugMenuItemsCreated defaultBtn descEditSupport disableStateStoring disabledCounter disabledOnline dndEventsRegistered dragEnterHandler dragFinishedHandler dragLeaveHandler dragOverHandler dragStartHandler dragging dropHandler editSupported excludeFromGlobalContextualSearch findDNDHandler focusEventsRegistered? forceDisabled? genres getCloseButtonAction headerAnimating headerHeightClass headerMinHeightClass icon imgUrl itemCount? lastHeaderHeight lastWikiShowingOnline mbDataType mergeParentContextMenu noFocusOnClick noMatchFilled parenthesis readingWiki resizediv setCloseButtonAction showingOnline slightlyOverflowedHeader startEdit? statusInfo storeLastFocusedState title touchEnd touchEventsRegistered? touchMove touchStart uniqueID useCollage useGenres useImage useMenuButton usePlayButton useShuffleButton useSourceSwitcher wikiUrl wikidesc wikipages

Accessors

Methods

_handle_layoutchange _notifyFiltered _processMBCoverObj _updateDisabledAttribute addCleanFunc addControl addEventListener addToContextMenu canDeleteSelected canDrawFocus canDrop canFocus cancelAll cancelDataSourcePromises checkedCleanUp cleanUp cleanUpPromises cleanUpStatusBarSources clearData clearFilterSource contextMenuHandler dataSourceChangeHandler dataSourceListen dataSourcePromise dataSourceUnlistenFuncts dragEnter dragFinished dragLeave dragOver drop editStart enableDragNDrop enableTouch fileTransferPrepare filterSource focusHandler focusIn focusRefresh formatStatus getContextMenuItems getDescription getDragDataType getDraggedObject getDropMode getFocusedElement getParentControl getParenthesis getPersistentStateRootControl getPersistentStateRootKey getPersistentStateRootKeyBase getTitle getTracklist handle_layoutchange initialize isFiltered localListen localPromise longTouch makeDraggable notfiySizeCouldChanged notifyControlFocus openView qChild raiseEvent registerEventHandler registerStatusBarSource removeEventListener renameAlbum requestFrame requestFrameMM requestIdle requestTimeout restorePersistentState restorePersistentStates restoreState safeEndTask sendStatus setChildsDisabled setDefaults setDisabledFromParent setDragElementData setEditMode setFocus setFocusedAndSelectedIndex setItemFullyVisible setItemFullyVisibleCentered setStatus setWikiLanguage showImage startEditTitle stopEditTitle storePersistentState storePersistentStates storeState thenWithProgress unregisterDragDrop unregisterEventHandler unregisterFocusEvents unregisterStatusBarSource unregisterTouchEvents updateImage updateValues

Constructors

Properties

UI: {
    [key: string]: HTMLElement;
}

Type declaration

  • [key: string]: HTMLElement

Undocumented

__preDataSource: any

Undocumented

__preSource: any

Undocumented

__preSourceFiltered: any

Undocumented

_canBeLongTouch: any

Undocumented

_captureListeners: any

Undocumented

_cleanFuncs: any

Undocumented

_cleanUpCalled: boolean

Undocumented

_contextMenu: any

Undocumented

_contextMenuAddons: any

Undocumented

_contextMenuHandler: any

Undocumented

_controlTitle: string

Undocumented

_dataSource: any

Undocumented

_dataSourceListenFuncts: (() => void)[]

Type declaration

    • (): void
    • Returns void

Undocumented

_dataSourceOrig: any

Undocumented

_dataSourcePromises: any

Undocumented

_disabled: boolean

Undocumented

_dockMenuItems: any

Undocumented

_dockable: boolean

Undocumented

_ds: any

Undocumented

_frameIDs: any

Undocumented

_frameMMIDs: any

Undocumented

_gettingImagePending: boolean

Undocumented

_hasSplitters: boolean

Undocumented

_idleCallIDs: any

Undocumented

_ignoreDefaultLookup: any

Undocumented

_imageCtrl: ArtworkRectangle

Undocumented

_isDock: boolean

Undocumented

_isFiltered: boolean

Undocumented

_isLongTouch: any

Undocumented

_isresizable: boolean

Undocumented

_lastKey?: string

Undocumented

_lastMousePos: {
    x: any;
    y: any;
}

Type declaration

  • x: any

    Undocumented

  • y: any

    Undocumented

Undocumented

_layoutChangeHandler?: ((evt) => void)

Type declaration

Undocumented

_listeners: any

Undocumented

_localPromises: Promise<any>[]

Undocumented

_mbImageUrl: any

Undocumented

_menuArray: Action[]

Undocumented

_mouseMoveHandler: ((evt) => void)

Type declaration

Undocumented

_mouseOutHandler: ((evt) => void)

Type declaration

Undocumented

_needsFullRecalculation?: boolean

Undocumented

_originalHeight: number

Undocumented

_originalWidth: number

Undocumented

_parentView: ViewData

Undocumented

_pointerAtPos: any

Undocumented

_promises: AnyDict

Undocumented

_resizeStartX: number

Undocumented

_resizeStartY: number

Undocumented

_resizing: boolean

Undocumented

_searchable: boolean

Undocumented

_setFilteredSourceTm: any

Undocumented

_statusBarPromises: any

Undocumented

_statusBarSources: any

Undocumented

_statusInfo: any

Undocumented

_statusParams: AnyDict

Undocumented

_tabIndex: number

Undocumented

_timeoutIDs: any

Undocumented

_touchDownTime: any

Undocumented

_triedDownloadImage: any

Undocumented

_triedImageFromMB: boolean

Undocumented

_triedImageFromRelease: boolean

Undocumented

_triedImageFromReleaseGroup: boolean

Undocumented

_triedLocalImage: boolean

Undocumented

_triedWikiImage: boolean

Undocumented

activatedHandler: ((active) => void)

Type declaration

    • (active): void
    • Parameters

      • active: boolean

      Returns void

Undocumented

addArtworkRules: any

Undocumented

artworkExactSizeClass: string

Undocumented

artworkSizeClass: string

Undocumented

bigHeader: boolean

Undocumented

biggerHeaderHeight: number

Undocumented

canBeUsedAsSource: boolean

Undocumented

canvas?: any

Undocumented

closediv?: HTMLDivElement

Undocumented

container: HTMLElement

Undocumented

contextMenuPromise: any

Undocumented

currentMode: any

Undocumented

debugMenuItemsCreated: any

Undocumented

defaultBtn: HTMLElement

Undocumented

descEditSupport: boolean

Undocumented

disableStateStoring: boolean

Undocumented

disabledCounter: number

Undocumented

disabledOnline: any

Undocumented

dndEventsRegistered: boolean

Undocumented

dragEnterHandler: ((e) => void)

Type declaration

Undocumented

dragFinishedHandler: ((e?) => void)

Type declaration

    • (e?): void
    • Parameters

      Returns void

Undocumented

dragLeaveHandler: ((e) => void)

Type declaration

Undocumented

dragOverHandler: ((e) => void)

Type declaration

Undocumented

dragStartHandler: ((e) => void)

Type declaration

Undocumented

dragging: boolean

Undocumented

dropHandler: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

Undocumented

editSupported: boolean

Undocumented

excludeFromGlobalContextualSearch: boolean

Undocumented

findDNDHandler: ((e) => any)

Type declaration

Undocumented

focusEventsRegistered?: boolean

Undocumented

forceDisabled?: boolean

Undocumented

genres: any

Undocumented

getCloseButtonAction: (() => any)

Type declaration

    • (): any
    • Returns any

Undocumented

headerAnimating: any

Undocumented

headerHeightClass: string

Undocumented

headerMinHeightClass: string

Undocumented

icon: string

Undocumented

imgUrl: any

Undocumented

itemCount?: number

Undocumented

lastHeaderHeight: any

Undocumented

lastWikiShowingOnline: boolean

Undocumented

mbDataType: any

Undocumented

mergeParentContextMenu: any

Undocumented

noFocusOnClick: any

Undocumented

noMatchFilled: boolean

Undocumented

parenthesis: any

Undocumented

readingWiki: boolean

Undocumented

resizediv: HTMLDivElement

Undocumented

setCloseButtonAction: ((action) => void)

Type declaration

    • (action): void
    • Parameters

      Returns void

Undocumented

showingOnline: boolean

Undocumented

slightlyOverflowedHeader: boolean

Undocumented

startEdit?: procedure

Undocumented

statusInfo: any

Undocumented

storeLastFocusedState: boolean

Undocumented

title: any

Undocumented

touchEnd: ((e) => void)

Type declaration

Undocumented

touchEventsRegistered?: boolean

Undocumented

touchMove: ((e) => void)

Type declaration

Undocumented

touchStart: ((e) => void)

Type declaration

Undocumented

uniqueID: string

Undocumented

useCollage: boolean

Undocumented

useGenres: boolean

Undocumented

useImage: boolean

Undocumented

useMenuButton: boolean

Undocumented

usePlayButton: boolean

Undocumented

useShuffleButton: boolean

Undocumented

useSourceSwitcher: boolean

Undocumented

wikiUrl: any

Undocumented

wikidesc: any

Undocumented

wikipages: any

Undocumented

Accessors

  • get album(): any
  • Returns any

  • get contextMenu(): any
  • Gets/sets context menu of the control. It could be also a function returning Menu object.

    Returns any

  • set contextMenu(value): void
  • Parameters

    • value: any

    Returns void

  • get dataSource(): any
  • Returns any

  • set dataSource(value): void
  • Parameters

    • value: any

    Returns void

  • get disabled(): boolean
  • Gets/sets data-disabled attribute of the control and his childs

    Returns boolean

  • set disabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get dockMenuItems(): any
  • Gets/sets dock menu of the control. It could be also a function returning Menu object.

    Returns any

  • set dockMenuItems(value): void
  • Parameters

    • value: any

    Returns void

  • get dockTitle(): string
  • Gets/sets dock title.

    Returns string

  • set dockTitle(value): void
  • Parameters

    • value: string

    Returns void

  • get dockable(): boolean
  • Gets/sets dockable status of the control.

    Returns boolean

  • set dockable(value): void
  • Parameters

    • value: boolean

    Returns void

  • get hasSplitters(): boolean
  • Returns boolean

  • set hasSplitters(value): void
  • Parameters

    • value: boolean

    Returns void

  • get helpContext(): string
  • Returns string

  • set helpContext(value): void
  • Parameters

    • value: string

    Returns void

  • get isDock(): boolean
  • Gets/sets isDock status of the control.

    Returns boolean

  • set isDock(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isSearchable(): boolean
  • Get/set whether this control is searchable (e.g. via search bar)

    Returns boolean

  • set isSearchable(value): void
  • Parameters

    • value: boolean

    Returns void

  • Returns any[]

  • Parameters

    • value: any[]

    Returns void

  • get minHeight(): number
  • Returns number

  • set minHeight(value): void
  • Parameters

    • value: number

    Returns void

  • get minWidth(): number
  • Returns number

  • set minWidth(value): void
  • Parameters

    • value: number

    Returns void

  • get multiselect(): boolean
  • Returns boolean

  • set multiselect(value): void
  • Parameters

    • value: boolean

    Returns void

  • get parentView(): ViewData
  • Gets/sets view data.

    Returns ViewData

  • set parentView(value): void
  • Parameters

    Returns void

  • get resizable(): boolean
  • Returns boolean

  • set resizable(val): void
  • Parameters

    • val: boolean

    Returns void

  • get selectionMode(): boolean
  • Returns boolean

  • set selectionMode(value): void
  • Parameters

    • value: boolean

    Returns void

  • get statusParams(): AnyDict
  • Gets/sets params for statusbar.

    Returns AnyDict

  • set statusParams(value): void
  • Parameters

    Returns void

  • get tabIndex(): number
  • Gets/sets tabIndex property. Use instead of tabIndex in HTMLElement for correct handling of disabled state.

    Returns number

  • set tabIndex(value): void
  • Parameters

    • value: number

    Returns void

  • get visible(): boolean
  • Gets/sets visibility state of the control.

    Returns boolean

Methods

  • Parameters

    • evt: any

    Returns void

    Undocumented

  • Parameters

    • orig: any
    • filtered: any
    • phrase: any

    Returns void

    Undocumented

  • Parameters

    • cvrObj: any

    Returns any

    Undocumented

  • Add function to be called once during Control cleanUp

    Parameters

    • func: any

      Function to add

    Returns void

    Method

    addCleanFunc

  • Creates a new sub-control.

    Parameters

    • controlClass: string

      Class of the new control.

    • Optional initParams: AnyDict

      Initialization parameters.

    Returns HTMLDivElement

    The new control.

    Method

    addControl

  • Parameters

    • event: any
    • func: any
    • capture: any

    Returns void

    Undocumented

  • Adds item(s) to control context menu.

    Parameters

    • items: any

    Returns void

    Method

    addToContextMenu

  • Returns boolean

    Undocumented

  • Returns boolean

    Undocumented

  • Parameters

    • e: any

    Returns boolean

    Undocumented

  • Returns boolean

    Undocumented

  • Returns void

    Undocumented

  • Returns void

    Undocumented

  • Returns void

    Undocumented

  • Returns void

    Undocumented

  • Parameters

    • params: any

    Returns void

    Undocumented

  • Parameters

    • e: any

    Returns void

    Undocumented

  • Parameters

    • params: any

    Returns void

    Undocumented

  • Parameters

    • object: any
    • event: any
    • func: any
    • Optional capture: boolean

    Returns ((...args) => any)

      • (...args): any
      • Parameters

        • Rest ...args: any[]

        Returns any

    Undocumented

  • Parameters

    • pr: any

    Returns any

    Undocumented

  • Handle drag enter operation

    Parameters

    Returns void

    Method

    dragEnter

  • Handle drag leave operation

    Parameters

    Returns void

    Method

    dragLeave

  • Handle drag over operation

    Parameters

    Returns void

    Method

    dragOver

  • Parameters

    • e: any

    Returns void

    Undocumented

  • Returns void

    Undocumented

  • Returns void

    Undocumented

  • Returns void

    Undocumented

  • Filters dataSource based on given criteria (used when searching/filtering items within, e.g. via search bar)

    Parameters

    • phrase: any

      string phrase to filter

    Returns void

    String message or object with detailed data

    Method

    filterSource

  • Parameters

    • element: HTMLElement
    • newState: any

    Returns boolean

    Undocumented

  • Parameters

    • newFocusState: any

    Returns void

    Undocumented

  • Format status text in this callback, when using object with detailed data.

    Parameters

    • data: any

    Returns string

    String message or object with detailed data

    Method

    formatStatus

  • Parameters

    • evt: any

    Returns any

    Undocumented

  • Returns any

    Undocumented

  • Returns string

    Undocumented

  • Returns HTMLElement

    Undocumented

  • Returns the first ancestor in the HTML DOM tree, that has controlClass and data-id. Searching is stopped on topParentCtrl, if defined.

    Parameters

    • topParentCtrl: any

      ControlClass of the top parent, where to stop searching.

    Returns Control

    Parent Control or undefined if there's no parent.

    Method

    getParentControl

  • Returns any

    Undocumented

  • Returns control to decide which subcontrols should be stored e.g. Multiview component overrides this as it stores states only for the active control/view

    Returns HTMLElement

    control

    Method

    getPersistentStateRootControl

  • Returns root key string under which the values are stored in persistent.JSON file on the disk.

    Returns string

    store key id

    Method

    getPersistentStateRootKey

  • Returns string

    Undocumented

  • Returns any

    Undocumented

  • Parameters

    • evt: any

    Returns void

    Undocumented

  • Parameters

    • rootelem: any
    • params: any

    Returns void

    Undocumented

  • Returns boolean

    Undocumented

  • This method is pretty similar as app.listen(), but app.unlisten() is called automatically in Control.cleanUp()

    Parameters

    • object: any

      Object where to set listener

    • event: string

      Event of the listener

    • func: AnyCallback

      Method for callback dispatch

    • Optional capture: boolean

    Returns ((...args) => any)

      • (...args): any
      • Parameters

        • Rest ...args: any[]

        Returns any

    Method

    localListen

  • This method is supposed to automatically cancel running promises when component is going to destroy.

    Parameters

    • promise: any

    Returns any

    Method

    localPromise

  • Control is allow drag object

    Parameters

    • element: any
    • Optional canBeDragged: boolean

    Returns void

    Method

    makeDraggable

  • Parameters

    • el: any

    Returns void

    Undocumented

  • Parameters

    • nodeDataSource: any
    • nodeHandlerID: any
    • clickedArea: any
    • Optional newTab: boolean

    Returns void

    Undocumented

  • Parameters

    • id: string

    Returns any

    Undocumented

  • Raise the event on the Control

    Parameters

    • eventName: any

      Name of the event

    • Optional details: AnyDict

      Custom parameters to be sent with the event

    • Optional isCancelable: boolean

      Whether the event can be canceled.

    • Optional canBubble: boolean

      Whether the event can bubble.

    • Optional sender: EventTarget

      of the event. Container by default.

    Returns boolean

    Success. If 'false', the event was canceled.

    Example

    if (!this.raiseEvent('selecting', {
    tabIndex: value,
    oldTabIndex: oldSelected
    }, true))
    return; // canceled, do not change selection
  • Parameters

    • event: any
    • Optional capture: boolean

    Returns void

    Undocumented

  • Parameters

    • source: any

    Returns void

    Undocumented

  • Parameters

    • event: any
    • func: any
    • capture: any

    Returns void

    Undocumented

  • Parameters

    • newTitle: any
    • newArtist: any
    • setTitleText: any

    Returns void

    Undocumented

  • Request an animation frame in the control context. If the control has been cleaned up, then the callback will not execute.

    Parameters

    • callback: (() => void)

      Callback to run.

        • (): void
        • Returns void

    • Optional callbackID: string

      Optional ID for callback, so that multiple instances of the callback do not execute at the same time.

    Returns void

    Example

    this.requestFrame(function () {
    // this callback will be executed at a maximum of your monitor's natural refresh rate.
    }, "myUniqueFrameCallbackName");
  • Request an animation frame in the control context, with the same features as requestAnimationFrameMM(). If the control has been cleaned up, then the callback will not execute.

    Parameters

    • callback: (() => void)

      Callback to run.

        • (): void
        • Returns void

    • Optional callbackID: string

      Optional ID for callback, so that multiple instances of the callback do not execute at the same time.

    Returns void

    Example

    this.requestFrame(function () {
    // this callback will be executed at a maximum of your monitor's natural refresh rate when focused, maximum of 30 fps when not focused, and maximum of 2 fps when window is not visible.
    }, "myUniqueFrameCallbackName");

    Method

    requestFrameMM

  • Calls requestIdleCallback, cancels the previous sheduled callback on cleanup or multiple calls

    Parameters

    • callback: any

      Callback, which should be called when idle

    • Optional callbackID: string

      String name, which identifies the callback. If present, it cancels the previous sheduled callback

    • Optional useFirst: boolean

      Valid only if callbackID is present, if true, previous unfinished timer is finished and the last is revoked

    Returns number

    Method

    requestIdle

  • Calls setTimeout, cancels the previous sheduled callback on cleanup or multiple calls

    Parameters

    • callback: (() => void)

      Callback, which should be called after timeout

        • (): void
        • Returns void

    • timeMS: number

      Timeout, in ms

    • Optional callbackID: string

      String name, which identifies the callback. If present, it cancels the previous sheduled callback

    • Optional useFirst: boolean

      Valid only if callbackID is present, if true, previous unfinished timer is finished and the last is revoked

    Returns number

    Method

    requestTimeout

  • Parameters

    • state: any

    Returns void

    Undocumented

  • Restores persistent (class) states for the control class and all subcontrols, this stores global (class) state (is same for all instances of the control)

    Returns void

    Method

    restorePersistentStates

  • Parameters

    • state: any

    Returns void

    Undocumented

  • Parameters

    • taskid: any

    Returns void

    Undocumented

  • Parameters

    • message: any

    Returns void

    Undocumented

  • Parameters

    • el: any
    • val: any
    • effectiveVal: any

    Returns void

    Undocumented

  • Returns void

    Undocumented

  • Parameters

    • value: any

    Returns void

    Undocumented

  • Set details for dragged element

    Parameters

    • element: any
    • e: any

    Returns void

    Method

    setDragElementData

  • Parameters

    • en: any

    Returns void

    Undocumented

  • Parameters

    • Optional onlyLV: boolean

    Returns void

    Undocumented

  • Parameters

    • idx: number

    Returns void

    Undocumented

  • Parameters

    • data: any

    Returns void

    Undocumented

  • Parameters

    • lang: any
    • Optional pgObj: any

    Returns void

    Undocumented

  • Parameters

    • imgLink: any
    • pathToOrigCachedFile: any

    Returns void

    Undocumented

  • Returns void

    Undocumented

  • Returns void

    Undocumented

  • Returns {
        bigHeader: boolean;
    }

    • bigHeader: boolean

      Undocumented

    Undocumented

  • Stores persistent (class) states for the control class and all subcontrols, this stores global (class) state (is same for all instances of the control)

    Returns void

    Method

    storePersistentStates

  • Method for handling Promise with delayed progress.

    Parameters

    • pPromise: any

      Passed promise

    • Optional params: any

      Object with possible parameters:

      • thenFunc - function called after resolving promise
      • errorFunc - function called after rejecting promise
      • delayedFunc - function called after given delay
      • delayMS - progress delay, default 100ms. Progress is displayed after this time, in case promise was not resolved yet
      • progressText - text displayed in delayed progress, default string is "Getting data"
      • progress - SimpleTasksController object, used for progress. If not present, use global progress.

    Returns void

    Method

    thenWithProgress

  • Parameters

    • event: string
    • Optional capture: boolean

    Returns void

    Undocumented

  • Parameters

    • Optional forceUpdate: boolean

    Returns void

    Undocumented

  • Returns void

    Undocumented