> ## 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 ScriptEditorView

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

## ScriptEditorView(ScriptModel, string, VariableTreeProperties, ILogger, Func\<ScriptModel, Task>, Uri)

Constructor, creates a new instance of the view

```csharp theme={null}
public ScriptEditorView(ScriptModel model, string componentName, VariableTreeProperties treeProperties, ILogger logger, Func<ScriptModel, Task> saveAsync, Uri icon = null)

```

### Parameters

`model` [ScriptModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.Models.ScriptModel)

The model representing the variableBasedBuilder.

`componentName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the component to use in the View.

`treeProperties` [VariableTreeProperties](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.Models.VariableTreeProperties)

Properties that define the tree control behavior.

`logger` [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger)

The Logger to use

`saveAsync` [Func](https://learn.microsoft.com/dotnet/api/system.func-2)\<[ScriptModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentPlugInSDK.Models.ScriptModel), [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task)>

An Async Function to invoke to perform a save operaion.

`icon` [Uri](https://learn.microsoft.com/dotnet/api/system.uri)

The optional URI of the icon to use in the view. If null or not specified, the default Windows icon will be used.
