PopupTableUtils(options)

PopupTableUtils
It implements table utils popup

new PopupTableUtils(options)

Creates an instance of PopupTableUtils.

Parameters:
Name Type Description
options LayerPopupOption

layer popup options

Extends

Methods

protected _initDOM()

initialize DOM, render popup

Inherited From:

protected _initDOMEvent()

bind DOM events

Overrides:

abstract, protected _initEditorEvent()

bind editor events

Overrides:

protected _initInstance(options)

init instance.
store properties & prepare before initialize DOM

Parameters:
Name Type Description
options LayerPopupOption

layer popup options

Overrides:

destroy()

destroy

Inherited From:

getTitleElement() → {HTMLElement}

get title element

Returns:
HTMLElement -
  • title html element
Inherited From:

hide()

hide popup

Inherited From:

protected isFitToWindow() → {boolean}

make popup size fit to window

Returns:
boolean -
  • true for fit to window
Inherited From:

isShow() → {boolean}

whether this popup is visible

Returns:
boolean -
  • true: shown, false: hidden
Inherited From:

off(type, fn)

unbind event handler

Parameters:
Name Type Description
type string

event name and selector

fn function

handler function

Inherited From:

on(aType, aFn)

Parameters:
Name Type Description
aType string | object

event name and selector string

aFn function

event handler

Inherited From:

remove()

remove popup content

Inherited From:

setContent($content)

set popup content

Parameters:
Name Type Description
$content jQuery | HTMLElement | string

content

Inherited From:

protected setFitToWindow(fit)

make popup size fit to window

Parameters:
Name Type Description
fit boolean

true to make popup fit to window

Inherited From:

setTitle(title)

set title

Parameters:
Name Type Description
title string

title text

Inherited From:

show()

show popup

Inherited From:

protected toggleFitToWindow() → {boolean}

toggle size fit to window

Returns:
boolean -
  • true for fit to window
Inherited From:

trigger(…args)

trigger event

Parameters:
Name Type Attributes Description
args object <repeatable>

event name & extra params

Inherited From: