SaaS CMS has officially launched! Learn more now.

Class Select1Fragment

Represents a xforms:select1 element which is a list of options where only 1 option can be selected (i.e.radio buttons or dropdownlists)

Namespace: EPiServer.XForms.Parsing
Assembly: EPiServer.XForms.dll
Version: 8.11.0
Syntax
public class Select1Fragment : XFormsFragment
Examples

xforms:select1 xforms:item xforms:label xforms:value

Constructors

Select1Fragment(ElementFragment)

Declaration
public Select1Fragment(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