Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Adding regular expression validator to a Razor Function property?

$
0
0
Does anyone know how to do this?

I am setting the widget markup like so:
[FunctionParameter(
    WidgetMarkup = "<f:widgetfunction name=\"Composite.Widgets.String.TextBox\" xmlns:f=\"http://www.composite.net/ns/function/1.0\"></f:widgetfunction>")]
public string PropertyName { get; set; }
I am trying to figure out how to add a regular expression validator definition to this widget. I can see a regular expression function is available:
<f:function name="Composite.Utils.Validation.RegularExpressionValidation" xmlns:f="http://www.composite.net/ns/function/1.0">
  <f:param name="pattern" value="[Required Value]" />
</f:function>
Does anyone know how to do this?

Ta x

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>