Method WithOnCreateScript
WithOnCreateScript(string)
Sets the script to be executed when a DOM instance is created.
public T WithOnCreateScript(string scriptName)
Parameters
scriptName
stringThe name of the script to execute on creation, or an empty string to not execute a script.
Returns
- T
The builder instance for chaining.
Exceptions
- ArgumentNullException
Thrown when
scriptName
isnull
.