Class SelectFragment
Represents a xforms:select element which is a list of options where multiple options can be selected (i.e. checkbox buttons)
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.XForms.Parsing
Assembly: EPiServer.XForms.dll
Version: 10.10.4Syntax
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 |