London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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: 10.10.4
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

Extension Methods