getControl Function
Public function for getControl.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
ES module import: import { getControl } from '@txtextcontrol/tx-sheet-control';.
Syntax
getControl(idOrElement: string | HTMLElement): SpreadsheetInstance | undefined
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
idOrElement | string | HTMLElement | No | Value matching idOrElement's declared type and the owning object's validation rules. |
Return Value
SpreadsheetInstance | undefined.
Examples
Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.
import { getControl } from '@txtextcontrol/tx-sheet-control';
const result = getControl('Invoice');
console.log(result);