◆ JavaScriptBuilderElementBuilder()
FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.JavaScriptBuilderElementBuilder | ( | ILoggerFactory | loggerFactory | ) |
Constructor.
- Parameters
-
- loggerFactory - The logger factory.
Member Function Documentation
◆ Build()
virtual JavaScriptBuilderElement FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.Build ( ) virtualBuild the element.
- Returns
◆ SetEnableCookies()
JavaScriptBuilderElementBuilder FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.SetEnableCookies ( bool enableCookies ) Set whether the client JavaScript stored results of client side processing in cookies.
- Parameters
-
- enableCookies - Should enable cookies?
- Returns
◆ SetEndpoint()
JavaScriptBuilderElementBuilder FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.SetEndpoint ( string endpoint ) Set the endpoint which will be queried on the host.
e.g /api/v4/json
- Parameters
-
- endpoint - The endpoint.
- Returns
◆ SetHost()
JavaScriptBuilderElementBuilder FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.SetHost ( string host ) Set the host that the client JavaScript should query for updates.
By default, the host from the request will be used.
- Parameters
-
- host - The host name.
- Returns
◆ SetMinify()
JavaScriptBuilderElementBuilder FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.SetMinify ( bool minify ) Enable or disable minification of the JavaScript that is produced by the JavaScriptBuilderElement.
The
NUglifypackage is used to minify the output.
- Parameters
-
- minify - True to minify the output. False to not.
- Returns
- This builder.
◆ SetObjectName()
JavaScriptBuilderElementBuilder FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.SetObjectName ( string objName ) The default name of the object instantiated by the client JavaScript.
- Parameters
-
- objName -
- Returns
◆ SetProtocol()
JavaScriptBuilderElementBuilder FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.SetProtocol ( string protocol ) The protocol that the client JavaScript will use when querying for updates.
By default, the protocol from the request will be used.
- Parameters
-
- protocol - The protocol to use (http / https)
- Returns
Property Documentation
◆ EnableCookies
bool FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.EnableCookies get protectedIf set to false, the JavaScript will automatically delete any cookies prefixed with 51D_
◆ Endpoint
string FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.Endpoint = string.Empty get protectedThe end point (i.e.
the relative URL) to use when creating a callback URL.
◆ Host
string FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.Host = string.Empty get protectedThe host name to use when creating a callback URL.
◆ Logger
ILogger FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.Logger get protectedThe logger for this instance.
◆ Minify
bool FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.Minify = true get protectedIf set to true, the JavaScript output will be minified
◆ ObjName
string FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.ObjName = string.Empty get protectedThe name of the JavaScript object that will be created.
◆ Protocol
string FiftyOne.Pipeline.JavaScriptBuilder.FlowElement.JavaScriptBuilderElementBuilder.Protocol = string.Empty get protectedThe protocol to use when creating a callback URL.