# GC.Spread.Sheets.FormulaPanel

## Content

# Namespace: FormulaPanel

[Spread](GC.Spread).[Sheets](GC.Spread.Sheets).FormulaPanel

## Table of contents

### Namespaces

- [Commands](GC.Spread.Sheets.FormulaPanel.Commands)

### Classes

- [FormulaEditor](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)

### Interfaces

- [IFormulaEditorOptions](../interfaces/GC.Spread.Sheets.FormulaPanel.IFormulaEditorOptions)

### Functions

- [findControl](GC.Spread.Sheets.FormulaPanel#findcontrol)

## Functions

### <a id="findcontrol" name="findcontrol"></a> findControl

▸ **findControl**(`host`): [`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)

Gets the FormulaEditor instance by the host element.

**`example`**
```javascript
window.onload = function(){
     var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
     var formulaEditor = new GC.Spread.Sheets.FormulaPanel.FormulaEditor(document.getElementById("fe"));
     formulaEditor.workbook(spread);
     var formulaEditorInstance = GC.Spread.Sheets.FormulaPanel.findControl("fe");
}
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `host` | `string` \| `HTMLElement` | The host element or the host element id. |

#### Returns

[`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)

The FormulaEditor instance.
