Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Element
    • PluginWrapper

Index

Properties

className

className: string

container

container: JQuery

controls

controls: JQuery

dontAdd

dontAdd: boolean

editBtn

editBtn: JQuery

elem

elem: JQuery

id

id: string

includePages

includePages: object

Type declaration

  • [pid: string]: object
    • [langCode: string]: boolean

isCommon

isCommon: boolean

isFullWidth

isFullWidth: boolean

modes

modes: IDictionary<Mode>

moveBtn

moveBtn: JQuery

parent

parent: Content

removed

removed: boolean

Optional staticPos

staticPos: undefined | object

system

system: Builder

Static PluginElement

PluginElement: PluginElement

Plugin element factory.

Usage:

var elem = PluginWrapper.PluginElement.fromData(data);

Methods

applyComProperties

  • applyComProperties(): void
  • Returns void

closeComProperties

  • closeComProperties(): void
  • Returns void

comPropertiesField

  • Parameters

    • field: string

    Returns UIComponent

displayEmtyMessage

  • displayEmtyMessage(display: boolean, noText?: undefined | false | true): void
  • Display message to inform user how to change picture

    Parameters

    • display: boolean

      if true message will be displayed else hidden

    • Optional noText: undefined | false | true

      set true to hide text

    Returns void

getBounds

  • getBounds(): ElementBounds
  • Returns ElementBounds

getClassType

  • getClassType(): string
  • Returns string

getHeight

  • getHeight(): number
  • Returns number

getLocation

  • getLocation(): object
  • Returns object

    • left: number
    • top: number

getParent

  • getParent(): Content
  • Returns Content

getSize

  • Returns ISize

getUsedFonts

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

getUsedMediaGalleryItems

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

getUsedSiteStyles

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

getWidth

  • getWidth(): number
  • Returns number

getZIndex

  • getZIndex(): number
  • Returns number

isHidden

  • isHidden(responsive?: undefined | false | true): boolean
  • Parameters

    • Optional responsive: undefined | false | true

    Returns boolean

onResize

  • onResize(): void
  • Returns void

remove

  • remove(noHistory?: undefined | false | true): void
  • Parameters

    • Optional noHistory: undefined | false | true

    Returns void

setControlsVisible

  • setControlsVisible(visible: boolean): void
  • Parameters

    • visible: boolean

    Returns void

setFullWidth

  • setFullWidth(fullWidth: boolean): void
  • Parameters

    • fullWidth: boolean

    Returns void

setLocation

  • setLocation(left?: number | null, top?: number | null): void
  • Parameters

    • Optional left: number | null
    • Optional top: number | null

    Returns void

setMinSize

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

    • width: number | null
    • height: number | null

    Returns void

setResizingEnabled

  • setResizingEnabled(enabled: boolean, destroy: boolean): void
  • Parameters

    • enabled: boolean
    • destroy: boolean

    Returns void

setSelected

  • setSelected(selected: boolean): void
  • Parameters

    • selected: boolean

    Returns void

setSize

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

    • Optional width: number | null
    • Optional height: number | null

    Returns void

Static addEventListener

  • addEventListener(event: string, func: function): void
  • Add event listener.

    Inside event listener you can access some plugin data from global variable pluginData, this variable is of type PluginGlobalLoadingData.

    Available events

    • builder.init - triggered when builder is fully initialized;
    • builder.beforesave - triggered before builder saves site data (events target will be PluginSite instance);
    • page.beforeload - triggered before page content starts loading;
    • page.load - triggered after page content is loaded;
    • templates.show - triggered when template chooser is shown;
    • templates.hide - triggered when template chooser is hidden;
    • contextmenu.show - triggered before context menu is shown (useful for modifying context menu);

    Parameters

    • event: string

      Event type.

    • func: function

      Event handler function.

    Returns void

Static registerPlugin

  • Register element plugin.

    Parameters

    • id: string

      Unique plugin identifier (use standard variable naming conventions).

    • def: PluginDefinition

      Plugin definition object.

    Returns void

Static removeEventListener

  • removeEventListener(event: string, func: function): void
  • Remove event listener.

    Parameters

    Returns void