Beispiel #1
0
 /// <summary>
 /// Sets the ShouldExecute JavaScript.
 /// </summary>
 /// <typeparam name="T">Subject type of the component builder.</typeparam>
 /// <param name="builder">The FlowComponentBuilder.</param>
 /// <param name="shouldExecuteScript">The ShouldExecute script to run.</param>
 /// <returns>The flow component builder with JavaScript set.</returns>
 public static IFlowComponentBuilder <T> SetShouldExecuteJavaScript <T>(this IFlowComponentBuilder <T> builder, string shouldExecuteScript)
 {
     return(builder.SetMetaData(JavaScriptMetaDataBuilder.MetaDataKeys.ShouldExecuteScript, shouldExecuteScript));
 }
Beispiel #2
0
 /// <summary>
 /// Sets the Excuted JavaScript.
 /// </summary>
 /// <typeparam name="T">Subject type of the component builder.</typeparam>
 /// <param name="builder">The FlowComponentBuilder.</param>
 /// <param name="executedScript">The script to run.</param>
 /// <returns>The flow component builder with JavaScript set.</returns>
 public static IFlowComponentBuilder <T> SetExecutedJavaScript <T>(this IFlowComponentBuilder <T> builder, string executedScript)
 {
     return(builder.SetMetaData(JavaScriptMetaDataBuilder.MetaDataKeys.ExecutedScript, executedScript));
 }
Beispiel #3
0
 /// <summary>
 /// Sets the ShouldExecute JavaScript.
 /// </summary>
 /// <typeparam name="T">Subject type of the component builder.</typeparam>
 /// <param name="builder">The FlowComponentBuilder.</param>
 /// <param name="customData">Custom Data to set on the node.</param>
 /// <returns>The flow component builder with Custom Data set.</returns>
 public static IFlowComponentBuilder <T> SetCustomData <T>(this IFlowComponentBuilder <T> builder, object customData)
 {
     return(builder.SetMetaData(CustomDataMetaDataBuilder.MetaDataKeys.CustomData, customData));
 }