Skip to main content

tools

UI Tools *

Constructors

new tools()

new tools(): tools

Returns

tools

Properties

PropertyModifierTypeDefault value
formLabelMaxWidthsprivateWeakMap<HTMLElement, number>...
formLabelWidthsprivateWeakMap<HTMLElement, number[]>...
formMinInputWidthsprivateWeakMap<HTMLElement, number>...
formNumberprivatenumber0
formResizeObserverprivatenull | ResizeObserver...
mutationObserverprivatenull | MutationObservernull
mutationObserverElementsprivateobject[][]

Methods

calcWidths()

static private calcWidths(form): void

Parameters

ParameterType
formHTMLElement

Returns

void

Source

ui.ts:1204


createElementFromHtml()

static createElementFromHtml(htmlString): HTMLDivElement

Parameters

ParameterType
htmlStringstring

Returns

HTMLDivElement

Source

ui.ts:1138


getFormId()

static private getFormId(form): string

Parameters

ParameterType
formHTMLElement

Returns

string

Source

ui.ts:1252


getInputsMinWidths()

static private getInputsMinWidths(form): number[]

Parameters

ParameterType
formHTMLElement

Returns

number[]

Source

ui.ts:1279


getLabelWidth()

static private getLabelWidth(element): number

Parameters

ParameterType
elementHTMLElement

Returns

number

Source

ui.ts:1332


getLabelsWidths()

static private getLabelsWidths(tempForm): number[]

Parameters

ParameterType
tempFormHTMLElement

Returns

number[]

Source

ui.ts:1320


handleFormResize()

static private handleFormResize(form): boolean

Parameters

ParameterType
formHTMLElement

Returns

boolean

Source

ui.ts:1216


handleResize()

static handleResize(element, onChanged): () => void

Finds entities (such as "CHEMBL25") in the specified html element, and converts them to hyperlinks

Parameters

ParameterType
elementHTMLElement
onChanged(width, height) => void

Returns

Function

Returns

void

Source

ui.ts:1127


initFormulaAccelerators()

static initFormulaAccelerators(textInput, table): void

Parameters

ParameterType
textInputInputBase<any>
tableDataFrame

Returns

void

Source

ui.ts:1144


resizeFormLabels()

static resizeFormLabels(form): void

Parameters

ParameterType
formHTMLElement

Returns

void

Source

ui.ts:1258


scrollIntoViewIfNeeded()

static scrollIntoViewIfNeeded(e): void

Parameters

ParameterType
eHTMLElement

Returns

void

Source

ui.ts:1345


setHoverVisibility()

static setHoverVisibility(host, items): void

Parameters

ParameterType
hostHTMLElement
itemsHTMLElement[]

Returns

void

Source

ui.ts:1134


setLabelsWidth()

static private setLabelsWidth(form, w): void

Parameters

ParameterType
formHTMLElement
wnumber

Returns

void

Source

ui.ts:1192


waitForElementInDom()

static waitForElementInDom(element): Promise<HTMLElement>

Waits until the specified element is in the DOM.

Parameters

ParameterType
elementHTMLElement

Returns

Promise<HTMLElement>

Source

ui.ts:1149