Skip to content

Latest commit

 

History

History
187 lines (84 loc) · 2.29 KB

zotero-plugin-toolkit.dialoghelper.md

File metadata and controls

187 lines (84 loc) · 2.29 KB

Home > zotero-plugin-toolkit > DialogHelper

DialogHelper class

Dialog window helper. A superset of XUL dialog.

Signature:

export declare class DialogHelper extends UITool 

Extends: UITool

Constructors

Constructor

Modifiers

Description

(constructor)(row, column)

Create a dialog helper with row * column grids.

Properties

Property

Modifiers

Type

Description

dialogData

DialogData

Passed to dialog window for data-binding and lifecycle controls. See DialogHelper.setDialogData()

window

Window

Dialog window instance

Methods

Method

Modifiers

Description

addButton(label, id, options)

Add a control button to the bottom of the dialog.

addCell(row, column, elementProps, cellFlex)

Add a cell at (row, column). Index starts from 0.

open(title, windowFeatures)

Open the dialog

setDialogData(dialogData)

Dialog data.