/// <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)); }
/// <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)); }
/// <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)); }