Options
All
  • Public
  • Public/Protected
  • All
Menu

Component that lets you display and work with a simple Content Collection

Usage example:

<content-list scope.bind="Scope"
     get-items.call="GetSelectedChildren(scope, query)"
     on-activate.call="Select(content)"
     on-drop-files.call="FilesDropped(event, files)"
     on-drop-content.call="ContentDropped(content)"
     on-drop-content-list.call="ContentListDropped(contentList)"
     on-drop-content-on-item.call="ContentDroppedOnItem(content, item)"
     on-drop-content-list-on-item.call="ContentListDroppedOnItem(contentList, item)"
     view-type.bind="ViewType"
     query.bind='query'
     selection.two-way="SelectedContent"
     actions.bind="exploreActions"></content-list>

Hierarchy

  • ContentList

Index

Constructors

constructor

  • new ContentList(bindingSignaler: BindingSignaler): ContentList

Properties

Actions

Actions: object[] = []

EnableSelection

EnableSelection: boolean = true

GetItems

GetItems: function

Type declaration

IsLoading

IsLoading: boolean = false

Items

Items: Content[]

MultiSelect

MultiSelect: boolean = true

OnActivate

OnActivate: function

Type declaration

    • (params: object): void
    • Parameters

      Returns void

Optional Query

Query: Query

Scope

Scope: Content

Selection

Selection: Content[] = []

ShowScope

ShowScope: boolean = true

ViewType

ViewType: CollectionView = CollectionView.List

Protected selectionChangedSignalKey

selectionChangedSignalKey: "content-list-selection-changed" = "content-list-selection-changed"

Accessors

Repository

  • get Repository(): BaseRepository

hasScope

  • get hasScope(): boolean

Methods

OnDropContent

  • OnDropContent(params: object): void

OnDropContentList

  • OnDropContentList(params: object): void

OnDropContentListOnItem

  • OnDropContentListOnItem(params: object): void

OnDropContentOnItem

  • OnDropContentOnItem(params: object): void

OnDropFiles

  • OnDropFiles(params: object): void

OnDropFilesOnItem

  • OnDropFilesOnItem(params: object): void

QueryChanged

  • QueryChanged(): void

Reinitialize

  • Reinitialize(): Promise<void>

ReloadOnContentChange

  • ReloadOnContentChange(content: Content | IContent): true

ScopeChanged

  • ScopeChanged(): void

activateItem

  • activateItem(content: Content): void

clearSubscriptions

  • clearSubscriptions(): void

detached

  • detached(): void

dropContent

  • dropContent(event: DragEvent, stringifiedContent: string, stringifiedContentList?: string[], files?: FileList): void
  • Parameters

    • event: DragEvent
    • stringifiedContent: string
    • Optional stringifiedContentList: string[]
    • Optional files: FileList

    Returns void

dropContentOnItem

  • dropContentOnItem(event: DragEvent, item: Content, stringifiedContent?: undefined | string, stringifiedContentList?: string[], files?: FileList): void
  • Parameters

    • event: DragEvent
    • item: Content
    • Optional stringifiedContent: undefined | string
    • Optional stringifiedContentList: string[]
    • Optional files: FileList

    Returns void

handleContentChanges

  • handleContentChanges(...changes: any[]): void

isSelected

  • isSelected(content: Content): boolean

selectItem

  • selectItem(event: MouseEvent, content: Content): void

toggleSelection

  • toggleSelection(event: MouseEvent, content: Content): void

triggerAction

  • triggerAction(event: MouseEvent, action: function, item: Content): void

Generated using TypeDoc