tools
UI Tools *
Constructors
new tools()
new tools():
tools
Returns
Properties
Property | Modifier | Type | Default value |
---|---|---|---|
formLabelMaxWidths | private | WeakMap <HTMLElement , number > | ... |
formLabelWidths | private | WeakMap <HTMLElement , number []> | ... |
formMinInputWidths | private | WeakMap <HTMLElement , number > | ... |
formNumber | private | number | 0 |
formResizeObserver | private | null | ResizeObserver | ... |
mutationObserver | private | null | MutationObserver | null |
mutationObserverElements | private | object [] | [] |
Methods
calcWidths()
static
private
calcWidths(form
):void
Parameters
Parameter | Type |
---|---|
form | HTMLElement |
Returns
void
Source
createElementFromHtml()
static
createElementFromHtml(htmlString
):HTMLDivElement
Parameters
Parameter | Type |
---|---|
htmlString | string |
Returns
HTMLDivElement
Source
getFormId()
static
private
getFormId(form
):string
Parameters
Parameter | Type |
---|---|
form | HTMLElement |
Returns
string
Source
getInputsMinWidths()
static
private
getInputsMinWidths(form
):number
[]
Parameters
Parameter | Type |
---|---|
form | HTMLElement |
Returns
number
[]
Source
getLabelWidth()
static
private
getLabelWidth(element
):number
Parameters
Parameter | Type |
---|---|
element | HTMLElement |
Returns
number
Source
getLabelsWidths()
static
private
getLabelsWidths(tempForm
):number
[]
Parameters
Parameter | Type |
---|---|
tempForm | HTMLElement |
Returns
number
[]
Source
handleFormResize()
static
private
handleFormResize(form
):boolean
Parameters
Parameter | Type |
---|---|
form | HTMLElement |
Returns
boolean
Source
handleResize()
static
handleResize(element
,onChanged
): () =>void
Finds entities (such as "CHEMBL25") in the specified html element, and converts them to hyperlinks
Parameters
Parameter | Type |
---|---|
element | HTMLElement |
onChanged | (width , height ) => void |
Returns
Function
Returns
void
Source
initFormulaAccelerators()
static
initFormulaAccelerators(textInput
,table
):void
Parameters
Parameter | Type |
---|---|
textInput | InputBase <any > |
table | DataFrame |
Returns
void
Source
resizeFormLabels()
static
resizeFormLabels(form
):void
Parameters
Parameter | Type |
---|---|
form | HTMLElement |
Returns
void
Source
scrollIntoViewIfNeeded()
static
scrollIntoViewIfNeeded(e
):void
Parameters
Parameter | Type |
---|---|
e | HTMLElement |
Returns
void