SaaS CMS has officially launched! Learn more now.

Class SelectFragment

Represents a xforms:select element which is a list of options where multiple options can be selected (i.e. checkbox buttons)

Inheritance
System.Object
SelectFragment
Namespace: EPiServer.XForms.Parsing
Assembly: EPiServer.XForms.dll
Version: 7.19.2
Syntax
public class SelectFragment : XFormsFragment
Examples

xforms:select xforms:item xforms:label

Constructors

SelectFragment(ElementFragment)

Declaration
public SelectFragment(ElementFragment fragment)
Parameters
Type Name Description
ElementFragment fragment

Properties

Label

The heading for this fragment

Declaration
public string Label { get; set; }
Property Value
Type Description
System.String

Options

A list of options to select from

Declaration
public IList<SelectOption> Options { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<SelectOption>

Orientation

The orientation of the optons.

Declaration
public Orientation Orientation { get; set; }
Property Value
Type Description
Orientation

Methods

ParseFragment(Stack<HtmlFragment>, HtmlFragment)

Parse the label and options items

Declaration
public override void ParseFragment(Stack<HtmlFragment> stack, HtmlFragment currentFragment)
Parameters
Type Name Description
System.Collections.Generic.Stack<HtmlFragment> stack
HtmlFragment currentFragment
Overrides

RequiredValidationFailed(NameValueCollection)

Declaration
public override bool RequiredValidationFailed(NameValueCollection formValues)
Parameters
Type Name Description
System.Collections.Specialized.NameValueCollection formValues
Returns
Type Description
System.Boolean
Overrides

Extension Methods