Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MediaLibrary

Hierarchy

Index

Constructors

constructor

  • new MediaLibrary(title?: undefined | string, isStatic?: undefined | false | true, content?: UIComponent | null, keepXBtn?: undefined | false | true): MediaLibrary
  • Parameters

    • Optional title: undefined | string
    • Optional isStatic: undefined | false | true
    • Optional content: UIComponent | null
    • Optional keepXBtn: undefined | false | true

    Returns MediaLibrary

Properties

baseElem

baseElem: JQuery

buttons

buttons: JQuery

content

content: JQuery

dialog

dialog: JQuery

fields

fields: object

Type declaration

  • [key: string]: any

headerElem

headerElem: JQuery

primaryButton

primaryButton: JQuery | null

title

title: JQuery

xButton

xButton: JQuery

Methods

__construct

  • __construct(title: string, isStatic?: undefined | false | true, content?: UIComponent, keepXBtn?: undefined | false | true): void
  • Parameters

    • title: string
    • Optional isStatic: undefined | false | true
    • Optional content: UIComponent
    • Optional keepXBtn: undefined | false | true

    Returns void

addButton

  • addButton(name: string, callback?: undefined | function, primary?: undefined | false | true, cssClass?: undefined | string): JQuery
  • Parameters

    • name: string
    • Optional callback: undefined | function
    • Optional primary: undefined | false | true
    • Optional cssClass: undefined | string

    Returns JQuery

clearFileSelection

  • clearFileSelection(): void
  • Returns void

getSelectedFiles

  • getSelectedFiles(): string[]
  • Returns string[]

hide

  • hide(): void

onClose

  • onClose(): void

onShow

  • onShow(): void

propertyDialogApply

  • propertyDialogApply(close?: undefined | false | true): void

propertyDialogClose

  • propertyDialogClose(): void

propertyDialogField

  • propertyDialogField(field: string): UIComponent | null

removeAllButtons

  • removeAllButtons(): void

setAutoResize

  • setAutoResize(autoResize: boolean, callback?: undefined | function): void
  • Parameters

    • autoResize: boolean
    • Optional callback: undefined | function

    Returns void

setCenterButtons

  • setCenterButtons(value: boolean): void

setContent

  • setContent(htmlContent: UIComponent | string | JQuery, keepFields?: undefined | false | true): void
  • Parameters

    • htmlContent: UIComponent | string | JQuery
    • Optional keepFields: undefined | false | true

    Returns void

setFooterVisible

  • setFooterVisible(visible: boolean): void

setMaximised

  • setMaximised(maximised: boolean): void

setNoScroll

  • setNoScroll(): void

setSelectedFiles

  • setSelectedFiles(files: string[]): void
  • Parameters

    • files: string[]

    Returns void

setSize

  • setSize(width: number, height?: number | null): void
  • Parameters

    • width: number
    • Optional height: number | null

    Returns void

setSizeClass

  • setSizeClass(sizeClass: "" | "modal-sm" | "modal-md" | "modal-lg" | string): void
  • Parameters

    • sizeClass: "" | "modal-sm" | "modal-md" | "modal-lg" | string

    Returns void

setTitle

  • setTitle(title: string): void
  • Parameters

    • title: string

    Returns void

setTitleVisible

  • setTitleVisible(visible: boolean): void

setVisible

  • setVisible(visible: boolean, noAction?: undefined | false | true, ignoreEvent?: undefined | false | true): void
  • Parameters

    • visible: boolean
    • Optional noAction: undefined | false | true
    • Optional ignoreEvent: undefined | false | true

    Returns void

show

  • show(htmlContent?: string | JQuery): void
  • Parameters

    • Optional htmlContent: string | JQuery

    Returns void

Static closeAll

  • closeAll(): void