> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Constructor VariableEditorView

Namespace: [Phoenix.ComponentPlugInSDK.Views](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Views)\
Assembly: Phoenix.ComponentPlugInSDK.dll

## VariableEditorView(VariableEditorModel, Action\<Exception>)

Creates a new instance of the view

```csharp theme={null}
public VariableEditorView(VariableEditorModel variableModel, Action<Exception> showErrorDialog)

```

### Parameters

`variableModel` [VariableEditorModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Models.VariableEditorModel)

The scriptVariableModel to display

`showErrorDialog` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[Exception](https://learn.microsoft.com/dotnet/api/system.exception)>

An action that displays an error dialog
